diff options
author | Jes Cok <xigua67damn@gmail.com> | 2024-04-12 01:52:37 +0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-04-17 17:43:50 +0000 |
commit | 076166ab4e13506c90448b5d6e0f34c3939ee76f (patch) | |
tree | c9b5ed7026e9df8069892c6cd6ef918ad46123c7 /doc | |
parent | f367fea83a95c0845ed4733ab1d6ada9ba3087c7 (diff) | |
download | go-076166ab4e13506c90448b5d6e0f34c3939ee76f.tar.gz go-076166ab4e13506c90448b5d6e0f34c3939ee76f.zip |
net/http: add ParseCookie, ParseSetCookie
Fixes #66008
Change-Id: I64acb7da47a03bdef955f394682004906245a18b
Reviewed-on: https://go-review.googlesource.com/c/go/+/578275
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/next/6-stdlib/99-minor/net/http/66008.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/next/6-stdlib/99-minor/net/http/66008.md b/doc/next/6-stdlib/99-minor/net/http/66008.md new file mode 100644 index 0000000000..e8603707ef --- /dev/null +++ b/doc/next/6-stdlib/99-minor/net/http/66008.md @@ -0,0 +1,7 @@ +The new [ParseCookie] function parses a Cookie header value and +returns all the cookies which were set in it. Since the same cookie +name can appear multiple times the returned Values can contain +more than one value for a given key. + +The new [ParseSetCookie] function parses a Set-Cookie header value and +returns a cookie. It returns an error on syntax error. |