Class UrlRewrite (1.11.0)

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

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

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
host_rewrite str
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. This field is a member of oneof_ _host_rewrite.
path_prefix_rewrite str
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. This field is a member of oneof_ _path_prefix_rewrite.