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

x/ayonli_jsext/esm/http/util.js>getCookies

A JavaScript extension package for building strong and modern applications.
Latest
function getCookies
import { getCookies } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/http/util.js";

Gets the cookies from the Cookie header of the request or the Set-Cookie header of the response.

Examples

Example 1

import { getCookies } from "@ayonli/jsext/http";

export default {
    fetch(req: Request) {
        const cookies = getCookies(req);
        console.log(cookies);

        return new Response("Hello, World!");
    }
}