[ Web Proxy ]
URL:
Viewing: https://firebase.google.com/docs/reference/js/remote-config.fetchresponse [Back]  [Original]

FetchResponse interface  |  Firebase JavaScript API reference Skip to main content
Overview Fundamentals AI Build Run Reference Samples
Firebase [Firebase]
Send feedback

FetchResponse interface Stay organized with collections Save and categorize content based on your preferences.

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.

experiments FirebaseExperimentDescription[] Metadata for A/B testing and Remote Config Rollout experiments.
rollouts FirebaseRolloutMetadata[] Metadata for Remote Config Rollout experiments.
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.

templateVersion number The 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.experiments

Metadata for A/B testing and Remote Config Rollout experiments.

Only defined for 200 responses.

Signature:

experiments?: FirebaseExperimentDescription[];

FetchResponse.rollouts

Metadata for Remote Config Rollout experiments.

Only defined for 200 responses.

Signature:

rollouts?: FirebaseRolloutMetadata[];

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;

FetchResponse.templateVersion

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

Signature:

templateVersion?: number;
Send feedback

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

Last updated 2026-07-10 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-07-10 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page