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 theEndpointRequestHeaders
instance.enabled
(boolean enabled) true
if the module will be applied to traffic,false
to disable.true
if the module will be applied to traffic,false
to 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
true
if the module will be applied to traffic,false
to disable. defaulttrue
if unspecified- Parameters:
enabled
- the value of theenabled
parameter as aboolean
- Returns:
- this builder instance
-
enabled
true
if the module will be applied to traffic,false
to disable. defaulttrue
if unspecified- Parameters:
enabled
- the value of theenabled
parameter 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 theEndpointRequestHeaders
instance.- Returns:
- a new
EndpointRequestHeaders
-