Show / Hide Table of Contents

Class Redirect

A Redirect specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.

Inheritance
object
Redirect
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.FirebaseHosting.v1beta1.Data
Assembly: Google.Apis.FirebaseHosting.v1beta1.dll
Syntax
public class Redirect : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Glob

The user-supplied glob to match against the request URL path.

Declaration
[JsonProperty("glob")]
public virtual string Glob { get; set; }
Property Value
Type Description
string

Location

Required. The value to put in the HTTP location header of the response. The location can contain capture group values from the pattern using a : prefix to identify the segment and an optional * to capture the rest of the URL. For example: "glob": "/:capture*", "statusCode": 301, "location": "https://example.com/foo/:capture"

Declaration
[JsonProperty("location")]
public virtual string Location { get; set; }
Property Value
Type Description
string

Regex

The user-supplied RE2 regular expression to match against the request URL path.

Declaration
[JsonProperty("regex")]
public virtual string Regex { get; set; }
Property Value
Type Description
string

StatusCode

Required. The status HTTP code to return in the response. It must be a valid 3xx status code.

Declaration
[JsonProperty("statusCode")]
public virtual int? StatusCode { get; set; }
Property Value
Type Description
int?

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX