Skip to content

Instantly share code, notes, and snippets.

View cristianoc's full-sized avatar

Cristiano Calcagno cristianoc

View GitHub Profile
@cristianoc
cristianoc / bun-headers.md
Created November 1, 2023 13:57 — forked from zth/bun-headers.md
TS -> ReScript examples

TypeScript:

/**
 * This Fetch API interface allows you to perform various actions on HTTP
 * request and response headers. These actions include retrieving, setting,
 * adding to, and removing. A Headers object has an associated header list,
 * which is initially empty and consists of zero or more name and value
 * pairs.
 *
 * You can add to this using methods like append()