Skip to content

Commit

Permalink
Add delete method to README docs
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Jun 6, 2018
1 parent 2baf9ca commit 91358d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ function handler (req) {
### Methods

* `get(key)` retrieves the cookie by `key` name, returning `undefined` when not found or invalid
* `stringify(key, data, options?)` creates a `Set-Cookie` header with optional [cookie options](https://github.com/jshttp/cookie#options-1)
* `set(res, key, data, options?)` sets the cookie with optional [cookie options](https://github.com/jshttp/cookie#options-1)
* `delete(res, key, options?)` deletes the cookie by setting `maxAge` into past with optional [cookie options](https://github.com/jshttp/cookie#options-1)
* `stringify(key, data, options?)` creates a `Set-Cookie` header with optional [cookie options](https://github.com/jshttp/cookie#options-1)
* `encode(value)` stringifies a JavaScript value
* `decode(value)` parses the cookie value into JavaScript

Expand Down

0 comments on commit 91358d6

Please sign in to comment.