Class URLRewrite (0.5.12)

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

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

Attributes

Name Description
path_prefix_rewrite str
Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.
host_rewrite str
Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.