For HTTP1, provide the ability to construct operation input and output from more than just the request and response body
- [HTTP1] provides the ability to construct operation input and output types from or to more than just the request and response body.
- The operation input can now conform to
OperationHTTP1InputProtocolto specify how the input type is constructed from the HTTP1 request. The operation input type can be constructed from the request headers, body, query string and url path tokens. - The operation output can now conform to
OperationHTTP1OutputProtocolto specify how the HTTP1 response is constructed from the output type. The operation output type can specify the response headers and body. - The operation input and output types can still conform to
Codablebut when being registered must specify the location in the request and response they correspond to.
- The operation input can now conform to
- [HTTP1] Handler selection using
StandardSmokeHTTP1HandlerSelectorcan now take into account tokens in the url path.
Note: This is a breaking change.
- Handlers with
Codableinput and output registered withStandardSmokeHTTP1HandlerSelectornow need to specify their input and output location in the request or response. - The default operation delegate is now specified in the initialiser of
StandardSmokeHTTP1HandlerSelectorrather than in theSmokeHTTP1Server.startAsOperationServer.