Skip to content

Commit 5ff8cc5

Browse files
authored
Migrate http1 proxy connect handler (#185)
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 https://github.com/swift-server/async-http-client/blob/0b5bec741bfcf941e208d937de2ec29affe750a7/Sources/AsyncHTTPClient/ConnectionPool/ChannelHandler/HTTP1ProxyConnectHandler.swift. Result: HTTP1ProxyConnectHandler will be surfaced via the NIOExtras library
1 parent 54def83 commit 5ff8cc5

9 files changed

+837
-1
lines changed

NOTICE.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,14 @@ This product contains a derivation of the Tony Stone's 'process_test_files.rb'.
3232
* https://www.apache.org/licenses/LICENSE-2.0
3333
* HOMEPAGE:
3434
* https://codegists.com/snippet/ruby/generate_xctest_linux_runnerrb_tonystone_ruby
35+
36+
---
37+
38+
This product contains a derivation of "HTTP1ProxyConnectHandler.swift" and accompanying tests from AsyncHTTPClient.
39+
40+
* LICENSE (Apache License 2.0):
41+
* https://www.apache.org/licenses/LICENSE-2.0
42+
* HOMEPAGE:
43+
* https://github.com/swift-server/async-http-client
44+
45+
---

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ var targets: [PackageDescription.Target] = [
2121
dependencies: [
2222
.product(name: "NIO", package: "swift-nio"),
2323
.product(name: "NIOCore", package: "swift-nio"),
24+
.product(name: "NIOHTTP1", package: "swift-nio"),
2425
]),
2526
.target(
2627
name: "NIOHTTPCompression",

[email protected]

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ var targets: [PackageDescription.Target] = [
2121
dependencies: [
2222
.product(name: "NIO", package: "swift-nio"),
2323
.product(name: "NIOCore", package: "swift-nio"),
24+
.product(name: "NIOHTTP1", package: "swift-nio")
2425
]),
2526
.target(
2627
name: "NIOHTTPCompression",

0 commit comments

Comments
 (0)