feat: add httpOnly cookies.get filter (#38043)

feat: add `httpOnly` `cookies.get` filter (#37255)

feat: add httpOnly cookies filter
This commit is contained in:
Black-Hole️
2023-04-27 01:22:39 +08:00
committed by GitHub
parent c6e803acfc
commit 510abbe71b
3 changed files with 37 additions and 0 deletions

View File

@@ -78,6 +78,7 @@ The following methods are available on instances of `Cookies`:
* `path` string (optional) - Retrieves cookies whose path matches `path`.
* `secure` boolean (optional) - Filters cookies by their Secure property.
* `session` boolean (optional) - Filters out session or persistent cookies.
* `httpOnly` boolean (optional) - Filters cookies by httpOnly.
Returns `Promise<Cookie[]>` - A promise which resolves an array of cookie objects.