CIs: attempt to use csources_v1 (#16282)
* CIs: attempt to use csources_v1 * also updated the BSDs * also updated azure pipelines * std modules should not itself use the 'std/' import dir... * compiler has to be careful with std/ for v1 booting
This commit is contained in:
parent
7bce1f8578
commit
a9b62de895
58 changed files with 142 additions and 143 deletions
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
## This module implements helper procs for parsing Cookies.
|
||||
|
||||
import std/[strtabs, times, options]
|
||||
import strtabs, times, options
|
||||
|
||||
|
||||
type
|
||||
|
|
@ -25,7 +25,7 @@ proc parseCookies*(s: string): StringTableRef =
|
|||
## "Set-Cookie" header set by servers.
|
||||
runnableExamples:
|
||||
import std/strtabs
|
||||
let cookieJar = parseCookies("a=1; foo=bar")
|
||||
let cookieJar = parseCookies("a=1; foo=bar")
|
||||
assert cookieJar["a"] == "1"
|
||||
assert cookieJar["foo"] == "bar"
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ proc parseCookies*(s: string): StringTableRef =
|
|||
|
||||
proc setCookie*(key, value: string, domain = "", path = "",
|
||||
expires = "", noName = false,
|
||||
secure = false, httpOnly = false,
|
||||
secure = false, httpOnly = false,
|
||||
maxAge = none(int), sameSite = SameSite.Default): string =
|
||||
## Creates a command in the format of
|
||||
## `Set-Cookie: key=value; Domain=...; ...`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue