ResponsePipelineTerminator

public protocol ResponsePipelineTerminator : AnyObject

Represents the final pipeline of a series of response pipelines. Use the terminator to parse response data into a final Response object of a certain Request object.

  • Parses data that holds input values to a Response object.

    Throws

    An error that occurs during the parsing process.

    Declaration

    Swift

    func parse<T>(request: T, data: Data) throws -> T.Response where T : Request

    Parameters

    request

    The original request.

    data

    The Data object received from a Session object.

    Return Value

    The Response object.