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
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!");
}
}