Package com.ngrok.definitions
Class EndpointResponseHeaders.Builder
java.lang.Object
com.ngrok.definitions.EndpointResponseHeaders.Builder
- Enclosing class:
- EndpointResponseHeaders
Builder class for
EndpointResponseHeaders.-
Method Summary
Modifier and TypeMethodDescriptiona map of header key to header value that will be injected into the HTTP Response returned to the HTTP clienta map of header key to header value that will be injected into the HTTP Response returned to the HTTP clientbuild()Constructs theEndpointResponseHeadersinstance.enabled(boolean enabled) trueif the module will be applied to traffic,falseto disable.trueif the module will be applied to traffic,falseto disable.a list of header names that will be removed from the HTTP Response returned to the HTTP clienta list of header names that will be removed from the HTTP Response returned to the HTTP client
-
Method Details
-
enabled
trueif the module will be applied to traffic,falseto disable. defaulttrueif unspecified- Parameters:
enabled- the value of theenabledparameter as aboolean- Returns:
- this builder instance
-
enabled
trueif the module will be applied to traffic,falseto disable. defaulttrueif unspecified- Parameters:
enabled- the value of theenabledparameter as aboolean, wrapped in anOptional- Returns:
- this builder instance
-
add
a map of header key to header value that will be injected into the HTTP Response returned to the HTTP client -
add
a map of header key to header value that will be injected into the HTTP Response returned to the HTTP client -
remove
a list of header names that will be removed from the HTTP Response returned to the HTTP client -
remove
a list of header names that will be removed from the HTTP Response returned to the HTTP client -
build
Constructs theEndpointResponseHeadersinstance.- Returns:
- a new
EndpointResponseHeaders
-