Headers
open class Headers(init: ReadonlyArray<Tuple2<JsString, JsString>> = definedExternally) : MapLike<JsString, JsString> (source)
The Headers interface of the Fetch API allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing headers from the list of the request's headers.
Functions
Link copied to clipboard
The get() method of the Headers interface returns a byte string of all the values of a header within a Headers object with a given name. If the requested header doesn't exist in the Headers object, it returns null.
Link copied to clipboard
The getSetCookie() method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response. This allows Headers objects to handle having multiple Set-Cookie headers, which wasn't possible prior to its implementation.
Link copied to clipboard
Link copied to clipboard