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 theEndpointResponseHeaders
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 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
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 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 theEndpointResponseHeaders
instance.- Returns:
- a new
EndpointResponseHeaders
-