Class HeadersInspectionOption

java.lang.Object
com.microsoft.kiota.http.middleware.options.HeadersInspectionOption
All Implemented Interfaces:
com.microsoft.kiota.RequestOption

public class HeadersInspectionOption extends Object implements com.microsoft.kiota.RequestOption
The options to be passed to the headers inspection middleware.
  • Constructor Details

    • HeadersInspectionOption

      public HeadersInspectionOption()
      Create default instance of headers inspection options, with default values of inspectRequestHeaders and inspectResponseHeaders.
    • HeadersInspectionOption

      public HeadersInspectionOption(boolean shouldInspectRequestHeaders, boolean shouldInspectResponseHeaders)
      Create an instance with provided values
      Parameters:
      shouldInspectRequestHeaders - Whether to inspect request headers
      shouldInspectResponseHeaders - Whether to inspect response headers
  • Method Details

    • getInspectRequestHeaders

      public boolean getInspectRequestHeaders()
      Gets whether to inspect request headers
      Returns:
      Whether to inspect request headers
    • setInspectRequestHeaders

      public void setInspectRequestHeaders(boolean inspectRequestHeaders)
      Sets whether to inspect request headers
      Parameters:
      inspectRequestHeaders - Whether to inspect request headers
    • getInspectResponseHeaders

      public boolean getInspectResponseHeaders()
      Gets whether to inspect response headers
      Returns:
      Whether to inspect response headers
    • setInspectResponseHeaders

      public void setInspectResponseHeaders(boolean inspectResponseHeaders)
      Sets whether to inspect response headers
      Parameters:
      inspectResponseHeaders - Whether to inspect response headers
    • getRequestHeaders

      @Nonnull public com.microsoft.kiota.RequestHeaders getRequestHeaders()
      Get the request headers
      Returns:
      The request headers
    • getResponseHeaders

      @Nonnull public com.microsoft.kiota.ResponseHeaders getResponseHeaders()
      Get the response headers
      Returns:
      The response headers
    • getType

      @Nonnull public <T extends com.microsoft.kiota.RequestOption> Class<T> getType()
      Specified by:
      getType in interface com.microsoft.kiota.RequestOption