execute(uri:method:headers:auth:body:testCallback:)

Send request with authentication and call test callback on the response returned

TestClient+Auth.swift:85
func execute<Return>(uri: String, method: HTTPRequest.Method, headers: HTTPFields = [:], auth: TestAuthentication, body: ByteBuffer? = nil, testCallback: @escaping (TestResponse) throws -> Return) async throws -> Return

Parameters

uri

URI to test

method

HTTP Method to test

headers

Request headers

auth

Authentication details

body

Request body

testCallback

Callback to test response

Returns

Result of callback