Skip to content

wujingquan/oak-cookie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

oak-cookie

A middleware for Oak, Based Koa and cookie .

Example

import { Application } from "https://deno.land/x/oak/mod.ts";
import cookie from 'https://github.com/wujingquan/oak-cookie/blob/master/mod.ts';

const app = new Application();

app
  .use(cookie)
  .use(ctx => {
    ctx.state.cookies.get('something')
    ctx.state.cookies.set('something')
    ctx.state.cookies.del('something')
    ctx.response.body = "Hello World!";
  });

await app.listen("127.0.0.1:8000");

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published