didFinishRequest(task:)

    Called when the complete HTTP request is finished. You must return an instance of your Response associated type. Will be called once, except if an error occurred.

    HTTPHandler.swift:621
    func didFinishRequest(task: HTTPClient.Task<Response>) throws -> Response

    Parameters

    task

    Current request context.

    Returns

    Result of processing.

    This function will not be called until all futures returned by didReceiveHead(task:_:) and didReceiveBodyPart(task:_:) have completed. Once called, no further calls will be made to didReceiveHead(task:_:), didReceiveBodyPart(task:_:), or didReceiveError(task:_:).

    Other requirements

    Type members

    Instance members