aboutsummaryrefslogtreecommitdiff
path: root/cookie.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-02-17 11:45:21 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-02-17 11:45:21 +0200
commitfd2887a5fce550b6c603aa1d7a81b010cc61aad3 (patch)
treea7f4308fc10dfc7d376f335bcb7dc88c1b043772 /cookie.go
parentIssue #51: Make RequestCtx.SendFile a synonim to ServeFile. This breaks Reque... (diff)
downloadfasthttp-fd2887a5fce550b6c603aa1d7a81b010cc61aad3.tar.gz
fasthttp-fd2887a5fce550b6c603aa1d7a81b010cc61aad3.tar.bz2
fasthttp-fd2887a5fce550b6c603aa1d7a81b010cc61aad3.zip
Issue #53: Clarify that the following instances mustn't be used from concurrently running goroutines: Args, Cookie, URI, RequestCtx, Request, Response, RequestHeader and ResponseHeader
Diffstat (limited to 'cookie.go')
-rw-r--r--cookie.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cookie.go b/cookie.go
index 9eb3587..a68406d 100644
--- a/cookie.go
+++ b/cookie.go
@@ -21,8 +21,7 @@ var (
//
// Do not copy Cookie objects. Create new object and use CopyTo instead.
//
-// It is unsafe modifying/reading Cookie instance from concurrently
-// running goroutines.
+// Cookie instance MUST NOT be used from concurrently running goroutines.
type Cookie struct {
key []byte
value []byte