Class UrlRewrite (0.6.0)

UrlRewrite(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

NameDescription
host_rewrite str
Prior to forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters.
path_prefix_rewrite str
Prior to forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters.