Skip to content

Commit 7f087a0

Browse files
inancgumuska3de
authored andcommitted
Add cookie defaults to the table
Resolves: #1328 (comment)
1 parent af0fd48 commit 7f087a0

File tree

1 file changed

+11
-11
lines changed
  • src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser/02 BrowserContext

1 file changed

+11
-11
lines changed

src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser/02 BrowserContext/cookie.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ excerpt: "Browser module: Cookie Class"
55

66
Cookie class represents a cookie in the [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext).
77

8-
| Property | Type | Description |
9-
| -------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
10-
| name | string | The cookie's name. Required. |
11-
| value | string | The cookie's value. Required. |
12-
| domain | string | The cookie's domain. |
13-
| path | string | The cookie's path. Defaults to `'/'`. |
14-
| url | string | The cookie's URL. |
15-
| expires | number | The cookie's expiration date as the number of seconds since the UNIX epoch. Defaults to `-1`, meaning a session cookie. |
16-
| httpOnly | bool | A cookie is inaccessible to the JavaScript [document.cookie](https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie) API when this property is `true`. Defaults to `false`. |
17-
| secure | bool | The cookie's secure flag. Defaults to `false`. |
18-
| sameSite | string | The cookie's same site flag. It can be one of `'Strict'`, `'Lax'`, and `'None'`. |
8+
| Property | Type | Default | Description |
9+
| -------- | ------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
10+
| name | string | `""` | The cookie's name. Required. |
11+
| value | string | `""` | The cookie's value. Required. |
12+
| domain | string | `""` | The cookie's domain. |
13+
| path | string | `'/'` | The cookie's path. |
14+
| url | string | `""` | The cookie's URL. |
15+
| expires | number | `-1` | The cookie's expiration date as the number of seconds since the UNIX epoch. `-1` means a session cookie. |
16+
| httpOnly | bool | `false` | A cookie is inaccessible to the JavaScript [document.cookie](https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie) API when this property is `true`. |
17+
| secure | bool | `false` | The cookie's secure flag. |
18+
| sameSite | string | `'Lax'` | The cookie's same site flag. It can be one of `'Strict'`, `'Lax'`, and `'None'`. |

0 commit comments

Comments
 (0)