execute(request:delegate:eventLoop:deadline:)

Execute arbitrary HTTP request and handle response processing using provided delegate.

HTTPClient.swift:617
func execute<Delegate>(request: Request, delegate: Delegate, eventLoop eventLoopPreference: EventLoopPreference, deadline: NIODeadline? = nil) -> Task<Delegate.Response> where Delegate : HTTPClientResponseDelegate

Parameters

request

HTTP request to execute.

delegate

Delegate to process response parts.

eventLoopPreference

NIO Event Loop preference.

deadline

Point in time by which the request must complete.