Skip to content

[AHC Transport] Async bodies + swift-http-types adoption #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Sep 27, 2023
Prev Previous commit
Next Next commit
Adapt to removed utils in runtime
  • Loading branch information
czechboy0 committed Sep 27, 2023
commit 85ba6a9a21929b90c9fc1e563df8f72c83e9f271
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ class Test_AsyncHTTPClientTransport: XCTestCase {

func testConvertRequest() throws {
let request: HTTPRequest = .init(
soar_path: "/hello%20world/Maria?greeting=Howdy",
method: .post,
scheme: nil,
authority: nil,
path: "/hello%20world/Maria?greeting=Howdy",
headerFields: [
.contentType: "application/json"
]
Expand Down Expand Up @@ -93,8 +95,10 @@ class Test_AsyncHTTPClientTransport: XCTestCase {
requestSender: TestSender.test
)
let request: HTTPRequest = .init(
soar_path: "/api/v1/hello/Maria",
method: .get,
scheme: nil,
authority: nil,
path: "/api/v1/hello/Maria",
headerFields: [
.init("x-request")!: "yes"
]
Expand Down