class Google::Apis::FirebasehostingV1beta1::Header

A [`Header`](firebase.google.com/docs/hosting/full-config#headers) specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.

Attributes

glob[RW]

The user-supplied [glob](firebase.google.com/docs/hosting/full-config# glob_pattern_matching) to match against the request URL path. Corresponds to the JSON property `glob` @return [String]

headers[RW]

Required. The additional headers to add to the response. Corresponds to the JSON property `headers` @return [Hash<String,String>]

regex[RW]

The user-supplied RE2 regular expression to match against the request URL path. Corresponds to the JSON property `regex` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firebasehosting_v1beta1/classes.rb, line 437
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firebasehosting_v1beta1/classes.rb, line 442
def update!(**args)
  @glob = args[:glob] if args.key?(:glob)
  @headers = args[:headers] if args.key?(:headers)
  @regex = args[:regex] if args.key?(:regex)
end