Skip to content
HTTP & JSON httpRemoveHeader

$httpRemoveHeader

Drops a header previously added with $httpAddHeader, before the next request.

Syntax

$httpRemoveHeader[Name]

Parameters

Parameter Description
Name Required. The header name; the match ignores case. An empty name raises “HTTP header name cannot be empty.”.

Return value

  • An empty string. A name that was not added is ignored.

Examples

$httpAddHeader[Authorization;Bearer abc]
$httpRemoveHeader[authorization]
$httpGet[https://example.com/api]

The request is sent without the Authorization header.

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.