From 5fbfdb25d7f5a2b006c0c96b62b30fcb9cac34f9 Mon Sep 17 00:00:00 2001 From: nicco Date: Fri, 18 Aug 2017 19:50:42 +0200 Subject: [PATCH] Improved Docs --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 618b05f..cd60bac 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,17 @@ c.request.cookie.set({ secure: false }) ``` + +|Options | Value | +|--------| -------------------------------| +|Key | Cookie Name | +|Value | Cookie Value | +|Path | Url Path | +|Domain | Sub or Domain | +|httpOnly| bool | +|secure | bool | +|max-age | seconds after the cookie expres| + ```javascript // Get a cookie ctx.request.cookie.get('my_id') => "12345678"