Class UrlRewrite (1.3.0)

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.

Inheritance

Object > UrlRewrite

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

UrlRewrite()

public UrlRewrite()

UrlRewrite(UrlRewrite)

public UrlRewrite(UrlRewrite other)
Parameter
NameDescription
otherUrlRewrite

Properties

HasHostRewrite

public bool HasHostRewrite { get; }

Gets whether the "host_rewrite" field is set

Property Value
TypeDescription
Boolean

HasPathPrefixRewrite

public bool HasPathPrefixRewrite { get; }

Gets whether the "path_prefix_rewrite" field is set

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
String