FetchResponse interface

Defines a successful response (200 or 304).

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

Signature:

exportinterfaceFetchResponse

Properties

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

Only defined for 200 responses.

eTagstringDefines the ETag response header value.

Only defined for 200 and 304 responses.

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

The Remote Config client is modeled after the nativeFetch 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.

templateVersionnumberThe version number of the config template fetched from the server.

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 nativeFetch 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;

FetchResponse.templateVersion

The version number of the config template fetched from the server.

Signature:

templateVersion?:number;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-18 UTC.