public sealed class UrlRewrite : IMessage<UrlRewrite>, IEquatable<UrlRewrite>, IDeepCloneable<UrlRewrite>, IBufferMessage, IMessageReference documentation and code samples for the Compute Engine v1 API class UrlRewrite.
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; }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.
| Property Value | |
|---|---|
| Type | Description |
String |
|
PathPrefixRewrite
public string PathPrefixRewrite { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
String |
|