Age | Commit message (Collapse) | Author | Files | Lines |
|
* add support for CHIPS (Cookies Having Independent Partitioned State)
* fix comment lines
* Update cookie.go fix lint error: should omit comparison to bool constant
|
|
* feat:support zstd compress and uncompressed
* fix:real & stackless write using different pool to avoid get stackless.writer
* fix:zstd normalize compress level
* Change empty string checks to be more idiomatic (#1684)
* chore:lint fix and rebase with master
* chore:remove 1.18 test & upgrade compress version
* fix:error default compress level
* Fix lint
---------
Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
|
|
Require that HTTP versions match the following pattern: HTTP/[0-9]\.[0-9]
|
|
* Auto add 'Vary' header after compression
Add config `SetAddVaryHeaderForCompression` to enable
'Vary: Accept-Encoding' header when compression is used.
* feat: always set the Vary header
* create and use `ResponseHeader.AddVaryBytes`
* not export 'AddVaryBytes'
|
|
The serverName atomic.Value field is used as a cache. This is not needed and logic can be simplified.
See related #1458
|
|
The getClientName() checks if !NoDefaultUserAgentHeader then returns the Client.Name field.
But it also saves it to atomic field clientName. This is not needed and logic can be simplified.
Previously the clientName vas a byte slice that was copied from c.Name and cached. See 02e0722fb73c6237818b8e5af55957eb919a7334
Fix #1458
|
|
This is probably still not 100% sure and there are still many bugs with
FS on windows. But it's a slight improvement.
Fixes #1226
|
|
* Add trailer support
* fix issue and add documentation
* remove redundant code
* add error return for add/set trailer method
* fix lint error
* fix bad trailer error return issue and update bad content-length error
* update errNonNumericChars
* update errNonNumericChars
* fix issue about error and fix typo
|
|
|
|
* Adding "image/svg" as compressible prefix
* Adding additional compressible prefixes from https://support.cloudflare.com/hc/en-us/articles/200168396-What-will-Cloudflare-compress-
|
|
* feat: improve bytesEqual
* benchmark
* nolint:unused
* remove unused code
* Update client.go
Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
|
|
Co-authored-by: liuchenxing <liuchenxing@bytedance.com>
|
|
* Update uri.go
* Update strings.go
|
|
* Added Protocol() as a replacement of hardcoded strHTTP11
* Applied review changes
* Modify h.proto in parseFirstLine
|
|
New Functions:
CompressHandlerBrotliLevel(h RequestHandler, brotliLevel, otherLevel int) RequestHandler
Request.BodyUnbrotli() ([]byte, error)
Response.BodyUnbrotli() ([]byte, error)
AppendBrotliBytesLevel(dst, src []byte, level int) []byte
WriteBrotliLevel(w io.Writer, p []byte, level int) (int, error)
WriteBrotli(w io.Writer, p []byte) (int, error)
AppendBrotliBytes(dst, src []byte) []byte
WriteUnbrotli(w io.Writer, p []byte) (int, error)
AppendUnbrotliBytes(dst, src []byte) ([]byte, error)
New Constants:
CompressBrotliNoCompression
CompressBrotliBestSpeed
CompressBrotliBestCompression
CompressBrotliDefaultCompression
Brotli compression levels are different from gzip/flate. Because of this we have separate level constants and CompressHandlerBrotliLevel takes 2 levels.
I didn't add Brotli support to CompressHandler as this could cause a spike in CPU usage when users upgrade fasthttp.
fasthttp.CompressBrotliDefaultCompression is not the same as
brotli.DefaultCompression. brotli.DefaultCompression is more than twice
as slow as fasthttp.CompressBrotliDefaultCompression which I thought was
unreasonable as default.
|
|
Thanks to https://github.com/paween1980
|
|
Fixes #609
|
|
* Support SameSite value "None" cookie attribute
* Fix typo in CookieSameSiteNoneMode comment
* fix comment for SameSite None
|
|
|
|
* :sparkles: Added methods constants
* :ok_hand: Fixed methods comment due to review changes
|
|
We already compare headers case insensitive so we don't need to compare
two different cases.
|
|
SameSite cookie attribute implementation.
|
|
Adds support for max-age cookie value
|
|
Add support for 'CONNECT', 'OPTIONS', 'TRACE' and 'PATCH'
|
|
|
|
|
|
|
|
|
|
fail on systems without certain config files
|
|
100-continue' requests. Kudos to @celer
|
|
compression support
|
|
|
|
|
|
and/or responses
|
|
|
|
|
|
|
|
RequestCtx.
|
|
|
|
|
|
connections and hijack them
|
|
Header calls. This should speed up common case with GET requests on the server
|
|
|
|
works slower than full headers parsing
|
|
http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4 for details
|
|
|
|
|
|
|
|
|
|
|