Class HeadersInspectionOption
java.lang.Object
com.microsoft.kiota.http.middleware.options.HeadersInspectionOption
- All Implemented Interfaces:
com.microsoft.kiota.RequestOption
The options to be passed to the headers inspection middleware.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate default instance of headers inspection options, with default values of inspectRequestHeaders and inspectResponseHeaders.HeadersInspectionOption(boolean shouldInspectRequestHeaders, boolean shouldInspectResponseHeaders) Create an instance with provided values -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether to inspect request headersbooleanGets whether to inspect response headerscom.microsoft.kiota.RequestHeadersGet the request headerscom.microsoft.kiota.ResponseHeadersGet the response headers<T extends com.microsoft.kiota.RequestOption>
Class<T> getType()voidsetInspectRequestHeaders(boolean inspectRequestHeaders) Sets whether to inspect request headersvoidsetInspectResponseHeaders(boolean inspectResponseHeaders) Sets whether to inspect response headers
-
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 headersshouldInspectResponseHeaders- 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
- Specified by:
getTypein interfacecom.microsoft.kiota.RequestOption
-