GoogleApi.FirebaseHosting.V1beta1.Model.Redirect (google_api_firebase_hosting v0.15.0) View Source
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.
Attributes
-
glob
(type:String.t
, default:nil
) - The user-supplied glob to match against the request URL path. -
location
(type:String.t
, default:nil
) - 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" -
regex
(type:String.t
, default:nil
) - The user-supplied RE2 regular expression to match against the request URL path. -
statusCode
(type:integer()
, default:nil
) - Required. The status HTTP code to return in the response. It must be a valid 3xx status code.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Specs
Link to this section Functions
Specs
Unwrap a decoded JSON object into its complex fields.