swagger-rs
swagger-rs copied to clipboard
Hyper 1.x
Migrate to Hyper 1: Matches the changes described in the [hyper1 upgrade guide](https://hyper.rs/guides/1/upgrading/_
- Remove
poll_readyfrom the Service implementation. -
callno longer requires a mutable service. - AddContextService and DropContext service are now generic over hyper::body::Body
a. It is expected that implementing services collect an
Incomingbody or are generic overhyper::body::Bodyand returnFull. - The
tcpfeature has been removed, to match the new hyper feature set.
Other changes:
-
BREAKING - Remove dependency and re-export of
hyper-old-typeswhich is no longer maintained.- This changes the inner types of the
AuthDataenum and thus the various methods on it to avoid re-exports.- The
hyper_old_typesare no longer re-exported, and the enums just wrapStrings. -
AuthData::bearer()now returnsOption, returningNoneif the provided token is not valid base64.
- The
- The
auth::make_headersfunction now returns anOption<AuthData>.
- This changes the inner types of the
-
BREAKING - Remove
SwaggerServicetrait due to lack of usage.