func on()

in sdk/core/AzureCore/Source/Pipeline/PipelineStage.swift [48:76]


    func on(request: PipelineRequest, completionHandler: @escaping OnRequestCompletionHandler)

    /// Response modification hook.
    /// - Parameters:
    ///   - response: The `PipelineResponse` input.
    ///   - completionHandler: A completion handler which forwards the modified response.
    func on(response: PipelineResponse, completionHandler: @escaping OnResponseCompletionHandler)

    /// Response error hook.
    /// - 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.
    func on(
        error: AzureError,
        pipelineResponse: PipelineResponse,
        completionHandler: @escaping OnErrorCompletionHandler
    )

    /// Executes the policy method.
    /// - Parameters:
    ///   - pipelineRequest: The `PipelineRequest` input.
    ///   - completionHandler: A `PipelineStageResultHandler` completion handler.
    func process(request pipelineRequest: PipelineRequest, completionHandler: @escaping PipelineStageResultHandler)
}

/// Default implementations for `PipelineStage`.
public extension PipelineStage {