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
datathat holds input values to aResponseobject.Throws
An error that occurs during the parsing process.Declaration
Swift
func parse<T>(request: T, data: Data) throws -> T.Response where T : RequestParameters
requestThe original request.
dataThe
Dataobject received from aSessionobject.Return Value
The
Responseobject.
View on GitHub
ResponsePipelineTerminator Protocol Reference