aboutsummaryrefslogtreecommitdiff
path: root/cookie.go
AgeCommit message (Collapse)AuthorFilesLines
2024-04-08add support for CHIPS (Cookies Having Independent Partitioned State) (#1752)Gravatar Gürkan Yeşilyurt 1-4/+30
* add support for CHIPS (Cookies Having Independent Partitioned State) * fix comment lines * Update cookie.go fix lint error: should omit comparison to bool constant
2023-12-13chore: Add missing dots at the end of comments (#1677)Gravatar Oleksandr Redko 1-10/+10
2023-11-24chore: Use 'any' instead of 'interface{}' (#1666)Gravatar Oleksandr Redko 1-1/+1
gofmt -w -r "interface{} -> any" -l .
2023-06-13Enable gofumpt linter; format code `gofumpt -w .` (#1576)v1.48.0Gravatar Oleksandr Redko 1-1/+0
2023-02-11Refactor golangci-lint config and remove redundant nolints (#1486)Gravatar Oleksandr Redko 1-1/+1
* Refactor golangci-lint config - Use golangci-lint-action for GitHub workflow. - Add additional golangci-lint run options. - Remove unused nolint directives. * Revert exclude-use-default option
2021-10-01Improve return value reusability documentationGravatar Erik Dubbelboer 1-4/+8
2021-09-07remove unnecessary op (#1095)Gravatar tyltr 1-8/+8
2021-05-21Fix cookie panicGravatar Erik Dubbelboer 1-13/+15
2019-11-16Run golangci-lint using a Github ActionGravatar Erik Dubbelboer 1-1/+1
2019-06-14Support SameSite value "None" cookie attribute (#581)Gravatar Rem 1-0/+16
* Support SameSite value "None" cookie attribute * Fix typo in CookieSameSiteNoneMode comment * fix comment for SameSite None
2019-02-16add conn's address info in Response (#537)Gravatar xuecai 1-0/+1
* reset commit * fix response copy bug; add tests;
2018-12-13Support SameSite cookie attribute (#488)Gravatar Matt Reyer 1-0/+59
SameSite cookie attribute implementation.
2018-09-13Adds support for max-age cookie value. Fixes #184 (#412)Gravatar David Byttow 1-1/+32
Adds support for max-age cookie value
2018-09-11Do case insensitive comparisons for headers and cookiesGravatar Erik Dubbelboer 1-25/+54
2018-08-29Try the same formats as net/http for cookie expireGravatar Erik Dubbelboer 1-1/+6
See: https://github.com/golang/go/blob/00379be17e63a5b75b3237819392d2dc3b313a27/src/net/http/cookie.go#L133-L135 Fixes #175
2018-08-27Add support for ResponseHeader.Peek("Set-Cookie")Gravatar Erik Dubbelboer 1-0/+13
See: https://github.com/erikdubbelboer/fasthttp/issues/4
2016-07-18Issue #141: do not urlencode cookiesGravatar Aliaksandr Valialkin 1-16/+18
https://tools.ietf.org/html/rfc6265 says nothing about cookies encoding.
2016-03-29Renamed unsafeBytes2Str to b2sGravatar Aliaksandr Valialkin 1-1/+1
2016-03-29Issue #73: added 'HttpOnly' and 'secure' flags support to CookieGravatar Aliaksandr Valialkin 1-7/+50
2016-03-10use 'switch string(key) {}' instead of 'switch { case bytes.Equal(key, ...) ↵Gravatar Aliaksandr Valialkin 1-4/+4
... }'. This may improve switch statement's performance
2016-03-06Moved empty noCopy struct to the top of container structs. See @stemar94 's ↵Gravatar Aliaksandr Valialkin 1-2/+2
comment at https://github.com/golang/go/issues/12884 for details
2016-03-04Do not expose noCopy.LockGravatar Aliaksandr Valialkin 1-1/+1
2016-03-04Embed noCopy struct into structs, which mustn't be copiedGravatar Aliaksandr Valialkin 1-0/+2
This should help `go vet` detecting invalid structs' copyings. See https://github.com/golang/go/issues/8005#issuecomment-190753527 for details.
2016-02-19Added AcquireCookie / ReleaseCookie helpersGravatar Aliaksandr Valialkin 1-0/+24
2016-02-17Issue #53: Clarify that the following instances mustn't be used from ↵Gravatar Aliaksandr Valialkin 1-2/+1
concurrently running goroutines: Args, Cookie, URI, RequestCtx, Request, Response, RequestHeader and ResponseHeader
2016-01-19Fixed golint warningsGravatar Aliaksandr Valialkin 1-1/+1
2016-01-13Exported AppendQuotedArgGravatar Aliaksandr Valialkin 1-4/+4
2016-01-04Issue #29: use time.UTC instead of time.LoadLocation, since this call may ↵Gravatar Aliaksandr Valialkin 1-1/+1
fail on systems without certain config files
2015-12-31fix typo in commentGravatar MK 1-1/+1
2015-12-19Substitute AppendBytesStr by append()Gravatar Aliaksandr Valialkin 1-5/+5
2015-12-19Clarify Append* return valuesGravatar Aliaksandr Valialkin 1-2/+2
2015-12-03Mention which structs are safe for use from concurrently running goroutines ↵Gravatar Aliaksandr Valialkin 1-0/+3
(Server, Client and HostClient) and which structs are unsafe to use from concurrently running goroutines - all the other
2015-11-29Added CopyTo to Cookie for the sake of API consistencyGravatar Aliaksandr Valialkin 1-0/+12
2015-11-22Access Cookie members via accessorsGravatar Aliaksandr Valialkin 1-45/+121
2015-11-22Documentation updateGravatar Aliaksandr Valialkin 1-2/+0
2015-11-22Added Cookie.WriteToGravatar Aliaksandr Valialkin 1-0/+9
2015-11-19Added Stringer implementations to URI, Args and CookieGravatar Aliaksandr Valialkin 1-0/+13
2015-11-18API consistency: Clear -> Reset to be consistent with standard go packagesGravatar Aliaksandr Valialkin 1-3/+3
2015-11-11Exported ParseUint, ParseUfloat and AppendHTTPDate, which may be frequently ↵Gravatar Aliaksandr Valialkin 1-1/+1
used in http apps
2015-11-05Optimized args, cookies and headers parsingGravatar Aliaksandr Valialkin 1-3/+5
2015-11-05Trim input buffer inside decodeArgGravatar Aliaksandr Valialkin 1-1/+1
2015-11-05Trim dst buffer inside decodeCookieArg. This simplifies the codeGravatar Aliaksandr Valialkin 1-6/+6
2015-11-05Added Cookie.ParseBytes to be consistent with ArgsGravatar Aliaksandr Valialkin 1-1/+10
2015-11-05Increased cookies' parsing performanceGravatar Aliaksandr Valialkin 1-15/+21
2015-11-05Eliminated redundant memory allocation during cookie expiration time parsingGravatar Aliaksandr Valialkin 1-1/+1
2015-11-05Added response cookies supportGravatar Aliaksandr Valialkin 1-8/+134
2015-11-04Properly encode cookie without nameGravatar Aliaksandr Valialkin 1-2/+4
2015-11-04Skip empty cookiesGravatar Aliaksandr Valialkin 1-1/+3
2015-11-03Initial support of request cookiesGravatar Aliaksandr Valialkin 1-0/+68