Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dax/src/request.ts>RequestBuilder#header

Cross-platform shell tools for Deno and Node.js inspired by zx.
Very Popular
Latest
method RequestBuilder.prototype.header
import { RequestBuilder } from "https://deno.land/x/dax@0.39.2/src/request.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