Google Cloud Network Services V1 Client - Class URLRewrite (0.2.0)

Reference documentation and code samples for the Google Cloud Network Services V1 Client class URLRewrite.

The specification for modifying the URL of the request, prior to forwarding the request to the destination.

Generated from protobuf message google.cloud.networkservices.v1.HttpRoute.URLRewrite

Namespace

Google \ Cloud \ NetworkServices \ V1 \ HttpRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ path_prefix_rewrite string

Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.

↳ host_rewrite string

Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.

getPathPrefixRewrite

Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.

Returns
Type Description
string

setPathPrefixRewrite

Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.

Parameter
Name Description
var string
Returns
Type Description
$this

getHostRewrite

Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.

Returns
Type Description
string

setHostRewrite

Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.

Parameter
Name Description
var string
Returns
Type Description
$this