NyRequestHeaders extension

on

Methods

addBearerToken(String token) Map<String, dynamic>

Available on RequestHeaders, provided by the NyRequestHeaders extension

Add a bearer token to the request headers.
addHeader(String key, dynamic value) Map<String, dynamic>

Available on RequestHeaders, provided by the NyRequestHeaders extension

Add a new header value to the request headers.
getBearerToken() String?

Available on RequestHeaders, provided by the NyRequestHeaders extension

Get the bearer token from the request headers.
hasHeader(String key) bool

Available on RequestHeaders, provided by the NyRequestHeaders extension

Add a new header value to the request headers.