Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dax/mod.ts>RequestBuilder#header

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to Latest
method RequestBuilder.prototype.header
Re-export
import { RequestBuilder } from "https://deno.land/x/dax@0.33.0/mod.ts";

Sets multiple headers at the same time via an object literal.

Parameters

items: Record<string, string | undefined>

Sets a header to send with the request.

Parameters

name: string
value: string | undefined