PipelineStage
public protocol PipelineStage
Protocol for implementing pipeline stages.
-
Undocumented
Declaration
Swift
var next: PipelineStage? { get set }
-
on(request:
Default implementationcompletionHandler: ) Request modification hook.
Default Implementation
Declaration
Swift
func on(request: PipelineRequest, completionHandler: @escaping OnRequestCompletionHandler)
Parameters
request
The
PipelineRequest
input.completionHandler
A completion handler which forwards the modified request.
-
on(response:
Default implementationcompletionHandler: ) Response modification hook.
Default Implementation
Declaration
Swift
func on(response: PipelineResponse, completionHandler: @escaping OnResponseCompletionHandler)
Parameters
response
The
PipelineResponse
input.completionHandler
A completion handler which forwards the modified response.
-
on(error:
Default implementationpipelineResponse: completionHandler: ) Response error hook.
Default Implementation
Declaration
Swift
func on( error: AzureError, pipelineResponse: PipelineResponse, completionHandler: @escaping OnErrorCompletionHandler )
Parameters
error
The
PipelineError
input.pipelineResponse
The
PipelineResponse
object.completionHandler
A completion handler which forwards the error along with a boolean that indicates whether the exception was handled or not.
-
process(request:
Default implementationcompletionHandler: ) Executes the policy method.
Default Implementation
Declaration
Swift
func process(request pipelineRequest: PipelineRequest, completionHandler: @escaping PipelineStageResultHandler)
Parameters
pipelineRequest
The
PipelineRequest
input.completionHandler
A
PipelineStageResultHandler
completion handler.