8 Commits

Author SHA1 Message Date
Rick Newton-Rogers
b34607e15a writes are buffered, other review changes
- writes issued whilst the CONNECT is ongoing are now buffered rather
  than triggering a failure
- Error is restructured to do away with `Kind`
- failure logic is consolidated in `failWithError`
2022-12-15 14:43:53 +00:00
Rick Newton-Rogers
313e224abf ProxyConnectHandler.Error restructuring, line+file fix 2022-12-05 15:30:36 +00:00
Rick Newton-Rogers
a2da342b2e ProxyConnectHandler reduce memory layout size 2022-12-05 10:33:34 +00:00
Rick Newton-Rogers
f9c784c263 invalidProxyResponseHead equality ignores content, error improvements 2022-12-05 10:27:36 +00:00
Rick Newton-Rogers
48b3369bf0 update package@swift-5.5, tweaks 2022-12-05 10:27:27 +00:00
Rick Newton-Rogers
9f7f576ee0 promise changes in tests, review changes
- include responseHEAD in invalid response errors
- remove precondition in favor of error in event of an unexpected proxy
  response
2022-12-05 10:27:27 +00:00
Rick Newton-Rogers
bf77b836e4 add promise to ProxyConnectHandler init, misc.
- Add missing
`context.fireChannelActive()`,`context.fireChannelInactive()` to pass
along events down the pipeline.
- Make some members private
2022-12-05 10:27:27 +00:00
Rick Newton-Rogers
b5efd662ef Migrate HTTP1ProxyConnectHandler into nio-extras
Motivation:

Moving the HTTP1ProxyConnectHandler into swift-nio-extras will make the
code which is generally useful when dealing with HTTP1 proxies available
more easily to a wider audience.

Modifications:

The code and tests are copied over from 0b5bec741b/Sources/AsyncHTTPClient/ConnectionPool/ChannelHandler/HTTP1ProxyConnectHandler.swift.

Result:

HTTP1ProxyConnectHandler will be surfaced via the NIOExtras library
2022-12-05 10:27:22 +00:00