Utils.removeAutoHeader

Removes an HTTP header added with Utils.addAutoHeader, and stops adding the HTTP header to every consecutive HTTP request following the function call.

Utils.removeAutoHeader(header);

Arguments

header. (string) The name of the header to stop from being added.

Return value

A promise that is fulfilled with undefined upon success.

Example

Copy code
(async ()=>{
    await Utils.removeAutoHeader("someCustomHeader");
})();