Skip to content

Instance Method

sendRequest(_:_:headers:body:file:line:beforeRequest:)

func sendRequest(_ method: HTTPMethod, _ path: String, headers: HTTPHeaders = [:], body: ByteBuffer? = nil, file: StaticString = #filePath, line: UInt = #line, beforeRequest: (inout XCTHTTPRequest) async throws -> () = { _ in }) async throws -> XCTHTTPResponse