Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::UrlRewrite (v1.9.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::UrlRewrite.

The spec for modifying the path before sending the request to the matched backend service.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#host_rewrite

def host_rewrite() -> ::String
Returns
  • (::String) — Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.

#host_rewrite=

def host_rewrite=(value) -> ::String
Parameter
  • value (::String) — Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
Returns
  • (::String) — Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.

#path_prefix_rewrite

def path_prefix_rewrite() -> ::String
Returns
  • (::String) — Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.

#path_prefix_rewrite=

def path_prefix_rewrite=(value) -> ::String
Parameter
  • value (::String) — Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
Returns
  • (::String) — Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.