0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

docs: replace delCookie with deleteCookie (#6467)

This commit is contained in:
Stanislav 2020-06-25 14:12:09 +03:00 committed by GitHub
parent ab0f12fcb8
commit 7ea3071db5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,10 +55,10 @@ to delete it.
```ts
import { Response } from "https://deno.land/std/http/server.ts";
import { delCookie } from "https://deno.land/std/http/cookie.ts";
import { deleteCookie } from "https://deno.land/std/http/cookie.ts";
let response: Response = {};
delCookie(response, "deno");
deleteCookie(response, "deno");
const cookieHeader = response.headers.get("set-cookie");
console.log("Set-Cookie:", cookieHeader);