Repository navigation
More Coders and HTTPClient improvements
This release is moving the library closer to finalized APIs for version 1.0. It has some breaking changes-
- The
execute*WithOutputAPIs ofHTTPClientnow produce an instance conforming toHTTPResponseOutputProtocol. This is analogous to the input typeHTTPRequestInputProtocolfor these methods and provides access to decoded headers from the response. - The
HTTPClientDelegate.getTLSConfiguration()function now returns an optionalTLSConfiguration. Ifnilis returned, a client will usehttprather thanhttps. - The
QueryCoderpackage has been moved toQueryCoding. - The
HTTPClientnow needs to be explicitly closed using theclose()API. Thewait()can be used to block until the client is completely shut down. This was a recommendation from the SwiftNIO team (@weissi).
The are also some additions-
- The
QueryCoder(nowQueryCoding) package has been joined withHTTPHeadersCodingandHTTPPathCodingfor encoding/decoding headers and paths respectively. - The HTTPClient can now be used with an existing
EventLoopGroup; it may be more efficient for an application to share ELGs across clients and/or other components. This was also a recommendation from the SwiftNIO team (@weissi).