Reference documentation and code samples for the Compute V1 Client class HttpHeaderAction.
The request and response header transformations that take effect before the request is passed along to the selected backendService.
Generated from protobuf message google.cloud.compute.v1.HttpHeaderAction
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ request_headers_to_add
array< HttpHeaderOption
>
Headers to add to a matching request before forwarding the request to the backendService.
↳ request_headers_to_remove
array
A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
↳ response_headers_to_add
array< HttpHeaderOption
>
Headers to add the response before sending the response back to the client.
↳ response_headers_to_remove
array
A list of header names for headers that need to be removed from the response before sending the response back to the client.
getRequestHeadersToAdd
Headers to add to a matching request before forwarding the request to the backendService.
setRequestHeadersToAdd
Headers to add to a matching request before forwarding the request to the backendService.
$this
getRequestHeadersToRemove
A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
setRequestHeadersToRemove
A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
var
string[]
$this
getResponseHeadersToAdd
Headers to add the response before sending the response back to the client.
setResponseHeadersToAdd
Headers to add the response before sending the response back to the client.
$this
getResponseHeadersToRemove
A list of header names for headers that need to be removed from the response before sending the response back to the client.
setResponseHeadersToRemove
A list of header names for headers that need to be removed from the response before sending the response back to the client.
var
string[]
$this