feat: add support for net requests to use the session cookie store (#22704)

This commit is contained in:
Samuel Attard
2020-03-20 15:56:02 -07:00
committed by GitHub
parent 07a049ef1b
commit 60bd52880f
4 changed files with 137 additions and 1 deletions

View File

@@ -22,6 +22,9 @@ which the request is associated.
with which the request is associated. Defaults to the empty string. The
`session` option prevails on `partition`. Thus if a `session` is explicitly
specified, `partition` is ignored.
* `useSessionCookies` Boolean (optional) - Whether to send cookies with this
request from the provided session. This will make the `net` request's
cookie behavior match a `fetch` request. Default is `false`.
* `protocol` String (optional) - The protocol scheme in the form 'scheme:'.
Currently supported values are 'http:' or 'https:'. Defaults to 'http:'.
* `host` String (optional) - The server host provided as a concatenation of