FetchResponse interface

Defines a successful response (200 or 304).

Modeled after the native Response interface, but simplified for Remote Config's use case.

Signature:

export interface FetchResponse 

Properties

Property Type Description
config FirebaseRemoteConfigObject Defines the map of parameters returned as "entries" in the fetch response body.

Only defined for 200 responses.

eTag string Defines the ETag response header value.

Only defined for 200 and 304 responses.

status number The HTTP status, which is useful for differentiating success responses with data from those without.

The Remote Config client is modeled after the native Fetch interface, so HTTP status is first-class.

Disambiguation: the fetch response returns a legacy "state" value that is redundant with the HTTP status code. The former is normalized into the latter.

FetchResponse.config

Defines the map of parameters returned as "entries" in the fetch response body.

Only defined for 200 responses.

Signature:

config?: FirebaseRemoteConfigObject;

FetchResponse.eTag

Defines the ETag response header value.

Only defined for 200 and 304 responses.

Signature:

eTag?: string;

FetchResponse.status

The HTTP status, which is useful for differentiating success responses with data from those without.

The Remote Config client is modeled after the native Fetch interface, so HTTP status is first-class.

Disambiguation: the fetch response returns a legacy "state" value that is redundant with the HTTP status code. The former is normalized into the latter.

Signature:

status: number;