Skip to content

Commit

Permalink
Add public initializer for XCTHTTPRequest (#3106)
Browse files Browse the repository at this point in the history
Add public initializer for XCTHTTPRequest
  • Loading branch information
hsharghi committed Nov 21, 2023
1 parent 37942ff commit 1aeeaaf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/XCTVapor/XCTHTTPRequest.swift
Expand Up @@ -7,6 +7,13 @@ public struct XCTHTTPRequest {
public var url: URI
public var headers: HTTPHeaders
public var body: ByteBuffer

public init(method: HTTPMethod, url: URI, headers: HTTPHeaders, body: ByteBuffer) {
self.method = method
self.url = url
self.headers = headers
self.body = body
}

private struct _ContentContainer: ContentContainer {
var body: ByteBuffer
Expand Down

0 comments on commit 1aeeaaf

Please sign in to comment.