Skip to content
It's Vapor Week! Celebrating 10 Years of Vapor Read more

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) throws -> () = { _ in }, afterResponse: (XCTHTTPResponse) throws -> () = { _ in }) throws -> any XCTApplicationTester