public sealed class UrlRewrite : IMessage<UrlRewrite>, IEquatable<UrlRewrite>, IDeepCloneable<UrlRewrite>, IBufferMessage, IMessage
The spec for modifying the path before sending the request to the matched backend service.
Implements
IMessage<UrlRewrite>, IEquatable<UrlRewrite>, IDeepCloneable<UrlRewrite>, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
UrlRewrite()
public UrlRewrite()
UrlRewrite(UrlRewrite)
public UrlRewrite(UrlRewrite other)
Parameter | |
---|---|
Name | Description |
other | UrlRewrite |
Properties
HasHostRewrite
public bool HasHostRewrite { get; }
Gets whether the "host_rewrite" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasPathPrefixRewrite
public bool HasPathPrefixRewrite { get; }
Gets whether the "path_prefix_rewrite" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HostRewrite
public string HostRewrite { get; set; }
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.
Property Value | |
---|---|
Type | Description |
String |
PathPrefixRewrite
public string PathPrefixRewrite { get; set; }
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.
Property Value | |
---|---|
Type | Description |
String |