Class HttpPipelineNextPolicy

java.lang.Object
com.azure.core.http.HttpPipelineNextPolicy

public class HttpPipelineNextPolicy extends Object

A class that invokes the next policy in the HTTP pipeline.

This class encapsulates the state of the HTTP pipeline call and provides a method to process the next policy in the pipeline.

It provides methods to process the next policy and clone the current instance of the next pipeline policy.

This class is useful when you want to send an HTTP request through the HTTP pipeline and need to process the next policy in the pipeline.

See Also:
  • Method Details

    • process

      public Mono<HttpResponse> process()
      Invokes the next HttpPipelinePolicy.
      Returns:
      A publisher which upon subscription invokes next policy and emits response from the policy.
    • clone

      public HttpPipelineNextPolicy clone()
      Creates a new instance of this instance.
      Overrides:
      clone in class Object
      Returns:
      A new instance of this next pipeline policy.