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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ request_headers_to_add |
array<Google\Cloud\Compute\V1\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<Google\Cloud\Compute\V1\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.
Generated from protobuf field repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setRequestHeadersToAdd
Headers to add to a matching request before forwarding the request to the backendService.
Generated from protobuf field repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Compute\V1\HttpHeaderOption>
|
Returns | |
---|---|
Type | Description |
$this |
getRequestHeadersToRemove
A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
Generated from protobuf field repeated string request_headers_to_remove = 218425247;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setRequestHeadersToRemove
A list of header names for headers that need to be removed from the request before forwarding the request to the backendService.
Generated from protobuf field repeated string request_headers_to_remove = 218425247;
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getResponseHeadersToAdd
Headers to add the response before sending the response back to the client.
Generated from protobuf field repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setResponseHeadersToAdd
Headers to add the response before sending the response back to the client.
Generated from protobuf field repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Compute\V1\HttpHeaderOption>
|
Returns | |
---|---|
Type | Description |
$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.
Generated from protobuf field repeated string response_headers_to_remove = 75415761;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setResponseHeadersToRemove
A list of header names for headers that need to be removed from the response before sending the response back to the client.
Generated from protobuf field repeated string response_headers_to_remove = 75415761;
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |