Interface FetchOptionsOrBuilder (0.47.0)

public interface FetchOptionsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsHeaders(String key)

public abstract boolean containsHeaders(String key)

Custom headers to pass into fetch request. Headers must have a maximum of 3 key value pairs. Each key value pair must have a maximum of 256 characters per key and 256 characters per value.

map<string, string> headers = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

getHeaders() (deprecated)

public abstract Map<String,String> getHeaders()

Use #getHeadersMap() instead.

Returns
Type Description
Map<String,String>

getHeadersCount()

public abstract int getHeadersCount()

Custom headers to pass into fetch request. Headers must have a maximum of 3 key value pairs. Each key value pair must have a maximum of 256 characters per key and 256 characters per value.

map<string, string> headers = 1;

Returns
Type Description
int

getHeadersMap()

public abstract Map<String,String> getHeadersMap()

Custom headers to pass into fetch request. Headers must have a maximum of 3 key value pairs. Each key value pair must have a maximum of 256 characters per key and 256 characters per value.

map<string, string> headers = 1;

Returns
Type Description
Map<String,String>

getHeadersOrDefault(String key, String defaultValue)

public abstract String getHeadersOrDefault(String key, String defaultValue)

Custom headers to pass into fetch request. Headers must have a maximum of 3 key value pairs. Each key value pair must have a maximum of 256 characters per key and 256 characters per value.

map<string, string> headers = 1;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getHeadersOrThrow(String key)

public abstract String getHeadersOrThrow(String key)

Custom headers to pass into fetch request. Headers must have a maximum of 3 key value pairs. Each key value pair must have a maximum of 256 characters per key and 256 characters per value.

map<string, string> headers = 1;

Parameter
Name Description
key String
Returns
Type Description
String