Skip to content

Instance Method

test(_:_:headers:body:file:line:beforeRequest:afterResponse:)

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