Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-12-13 | chore: Add missing dots at the end of comments (#1677) | Oleksandr Redko | 1 | -2/+2 | |
2023-11-24 | chore: Use 'any' instead of 'interface{}' (#1666) | Oleksandr Redko | 1 | -1/+1 | |
gofmt -w -r "interface{} -> any" -l . | |||||
2023-11-24 | Enable wastedassign, whitespace linters; fix issues (#1665) | Oleksandr Redko | 1 | -1/+1 | |
2023-08-29 | Enable gocritic linter; fix lint issues (#1612) | Oleksandr Redko | 1 | -7/+9 | |
2023-05-11 | Refactor by removing unnecessary else block (#1559) | Oleksandr Redko | 1 | -2/+1 | |
2023-04-04 | remove (#1534) | tyltr | 1 | -1/+0 | |
2023-02-11 | Refactor golangci-lint config and remove redundant nolints (#1486) | 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 | |||||
2022-11-14 | Make sure nothing is nil in tmp slice (#1423) | hs son | 1 | -1/+2 | |
2022-10-29 | feat: add PeekKeys and PeekTrailerKeys (#1405) | kinggo | 1 | -0/+8 | |
* feat: add PeekKeys and PeekTrailerKeys * Improve warning Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com> | |||||
2022-10-15 | feat: add header.PeekAll (#1394) | kinggo | 1 | -0/+10 | |
2022-06-06 | header.go Referer() optimize (#1313) | Sergey Ponomarev | 1 | -1/+1 | |
* args.go GetBool(): use switch with string casting This should be optimized by Go compiler itself so the b2s() call is not needed. It was previously done by this but changed in 1e7885eb56cdf4c6f550e143b0dbd3acc82a4137 * header.go Referer() optimize Use direct peekArgBytes() instead of PeekBytes() that will check for special headers * header_timing_test.go BenchmarkRequestHeaderPeekBytesSpecialHeader The old BenchmarkRequestHeaderPeekBytesCanonical and BenchmarkRequestHeaderPeekBytesNonCanonical are in fact just measured the header normalization. But it's anyway is benchmarked separately. Results was almost the same: 1.5 ns/op. Instead, let's reuse the benches to find a difference between peeking of special (Host, CT) and custom headers. | |||||
2022-04-24 | optimize (#1275) | tyltr | 1 | -2/+17 | |
* opotimize * lint * without min * less comparisons | |||||
2022-04-19 | optimize (#1272) | tyltr | 1 | -2/+5 | |
2022-03-18 | reduce unnessary type assart (#1254) | tyltr | 1 | -1/+1 | |
2021-12-05 | Add trailer support (#1165) | ichx | 1 | -0/+7 | |
* 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 | |||||
2021-10-01 | Improve return value reusability documentation | Erik Dubbelboer | 1 | -3/+6 | |
2020-12-26 | Make argsKV more predictable | Erik Dubbelboer | 1 | -1/+9 | |
Fixes #932 | |||||
2020-11-24 | Fixing deletion of headers/queryargs having multiple values. (#918) | anshul-jain-aws | 1 | -0/+1 | |
2019-11-16 | Run golangci-lint using a Github Action | Erik Dubbelboer | 1 | -1/+1 | |
2019-02-03 | change timer to public api #525 (#527) | xuecai | 1 | -1/+1 | |
* change acquireTimer and releaseTimer to public api | |||||
2019-02-02 | Various changes regarding code readibility (#523) | Shulhan | 1 | -4/+4 | |
* all: use sort.Strings when applicable Basically, sort.Strings is the shortcut of Sort(StringSlice(a)) but its more readable. * all: replace string(bytes.Buffer.Bytes()) with bytes.Buffer.String() Although its only occured on test files, it may be worth to simplified it. * http_test: simplify strings.Index with strings.Contains Both have the same O(n), but strings.Contains more readable on if-condition. * args: simplify if-condition check on boolean value * all: simplify variable initialization If we assign the variable after declaring it, we can simplify it using ":=" operator or "= value". The reader can still known the type of variable from the struct name or variable type before assignment operator. | |||||
2019-01-04 | add method Sort in args (#505)v1.1.0 | xuecai | 1 | -1/+15 | |
* add method StringSort QueryStringSort AppendBytesSort in args * simplify code * only Sort method * format * add method StringSort QueryStringSort AppendBytesSort in args * simplify code * only Sort method * format * merge and fix tests * change sort into generic by having the sort function * change sort into generic by having the sort function * change comment | |||||
2018-12-30 | fix args empty string be changed to boolen (#502) | xuecai | 1 | -22/+74 | |
Add support for empty args | |||||
2018-10-01 | Remove fasthttp.ByteBuffer | Erik Dubbelboer | 1 | -2/+4 | |
As advertised in https://github.com/valyala/fasthttp/commit/b5f96d4b4120bb1e09c23ac32baf21a14da4a71d | |||||
2018-08-21 | handle 't' and 'true' as bool in QueryArgs | Erik Dubbelboer | 1 | -3/+6 | |
See: https://github.com/erikdubbelboer/fasthttp/pull/46 | |||||
2017-10-08 | A lot of typo fixes | xPushkin | 1 | -1/+1 | |
2017-07-21 | decodeArgAppend code prettifying | Aliaksandr Valialkin | 1 | -6/+6 | |
2017-07-21 | decodeArgAppend* optimization: remove bounds check when decoding ↵ | Aliaksandr Valialkin | 1 | -2/+2 | |
percent-encoded string Benchmark results: name old time/op new time/op delta AppendUnquotedArgSlowPath-4 68.9ns ± 2% 63.5ns ± 2% -7.88% (p=0.000 n=10+10) | |||||
2017-07-21 | ioptimized decodeArgAppend a bit | Aliaksandr Valialkin | 1 | -12/+45 | |
Benchmark results on linux/amd64: name old time/op new time/op delta ArgsParse-4 72.8ns ± 2% 68.0ns ± 2% -6.59% (p=0.000 n=10+9) AppendUnquotedArgFastPath-4 20.4ns ± 2% 21.1ns ± 9% ~ (p=0.614 n=8+10) AppendUnquotedArgSlowPath-4 68.9ns ± 3% 70.4ns ± 6% ~ (p=0.148 n=9+10) URIParsePath-4 80.9ns ± 2% 78.7ns ± 2% -2.80% (p=0.000 n=10+10) URIParsePathQueryString-4 88.9ns ± 1% 86.3ns ± 1% -2.90% (p=0.000 n=10+8) URIParsePathQueryStringHash-4 95.7ns ± 8% 91.0ns ± 1% -4.88% (p=0.000 n=9+10) URIParseHostname-4 98.6ns ± 1% 95.4ns ± 1% -3.24% (p=0.000 n=10+10) | |||||
2017-06-20 | use more clear decodeArgAppend instead of misleading decodeArg | Aliaksandr Valialkin | 1 | -9/+5 | |
2017-06-20 | added a fast path to decodeArgAppend when the arg doesnt contain encoded chars | Aliaksandr Valialkin | 1 | -0/+6 | |
2017-01-30 | Added Args.GetBool helper | Aliaksandr Valialkin | 1 | -0/+13 | |
2016-03-29 | Added Args.Add() | Aliaksandr Valialkin | 1 | -0/+28 | |
2016-03-29 | Eliminated bufKV member from Args struct. This shaves off 16 bytes from ↵ | Aliaksandr Valialkin | 1 | -7/+7 | |
RequestCtx struct | |||||
2016-03-29 | Pass string key to hasArg instead of byte slice key | Aliaksandr Valialkin | 1 | -5/+4 | |
2016-03-29 | Added delAllArgsBytes helper | Aliaksandr Valialkin | 1 | -5/+8 | |
2016-03-29 | Renamed unsafeBytes2Str to b2s | Aliaksandr Valialkin | 1 | -9/+14 | |
2016-03-29 | Renamed setArg to setArgBytes | Aliaksandr Valialkin | 1 | -2/+2 | |
2016-03-15 | re-use appendArg inside setArgv20160316 | Aliaksandr Valialkin | 1 | -13/+1 | |
2016-03-11 | optimized delAllArgs | Aliaksandr Valialkin | 1 | -12/+3 | |
2016-03-10 | Issue #64: properly delete header values via Del call | Aliaksandr Valialkin | 1 | -1/+11 | |
2016-03-06 | Moved empty noCopy struct to the top of container structs. See @stemar94 's ↵ | Aliaksandr Valialkin | 1 | -2/+2 | |
comment at https://github.com/golang/go/issues/12884 for details | |||||
2016-03-04 | Do not expose noCopy.Lock | Aliaksandr Valialkin | 1 | -1/+1 | |
2016-03-04 | Embed noCopy struct into structs, which mustn't be copied | 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-19 | Added AcquireArgs and ReleaseArgs helper functions | Aliaksandr Valialkin | 1 | -0/+23 | |
2016-02-17 | Issue #53: Clarify that the following instances mustn't be used from ↵ | Aliaksandr Valialkin | 1 | -2/+1 | |
concurrently running goroutines: Args, Cookie, URI, RequestCtx, Request, Response, RequestHeader and ResponseHeader | |||||
2016-02-15 | Added Args.PeekMulti for obtaining multiple query arg values for the given key | Aliaksandr Valialkin | 1 | -0/+16 | |
2016-01-13 | Exported AppendQuotedArg | Aliaksandr Valialkin | 1 | -2/+2 | |
2015-12-19 | Substitute EqualBytesStr(s, b) by string(b) == s | Aliaksandr Valialkin | 1 | -1/+1 | |
2015-12-19 | Substitute AppendBytesStr by append() | Aliaksandr Valialkin | 1 | -7/+7 | |