Package com.ngrok.definitions
Class EndpointRequestHeaders.Builder
java.lang.Object
com.ngrok.definitions.EndpointRequestHeaders.Builder
- Enclosing class:
- EndpointRequestHeaders
Builder class for
EndpointRequestHeaders.-
Method Summary
Modifier and TypeMethodDescriptiona map of header key to header value that will be injected into the HTTP Request before being sent to the upstream application servera map of header key to header value that will be injected into the HTTP Request before being sent to the upstream application serverbuild()Constructs theEndpointRequestHeadersinstance.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 Request before being sent to the upstream application servera list of header names that will be removed from the HTTP Request before being sent to the upstream application server
-
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 Request before being sent to the upstream application server -
add
a map of header key to header value that will be injected into the HTTP Request before being sent to the upstream application server -
remove
a list of header names that will be removed from the HTTP Request before being sent to the upstream application server -
remove
a list of header names that will be removed from the HTTP Request before being sent to the upstream application server -
build
Constructs theEndpointRequestHeadersinstance.- Returns:
- a new
EndpointRequestHeaders
-