Erik Dubbelboer
c2b317d47d
Go 1.26 and golangci-lint updates ( #2146 )
...
Keep Go 1.24 compatibility for now (by not using `wg.Go()`).
2026-02-21 10:28:39 +01:00
pj
7b5cb77b95
Add sortkeys ( #2118 )
...
* added Args.SortKeys
* add test for SortKeys
* fix comment
2025-12-29 15:00:35 -03:00
Kashiwa
a1783ffacc
feat: Add iter.Seq2 iterator #2010 ( #2011 )
2025-05-18 13:23:04 +02:00
Oleksandr Redko
bdd459ab0e
test: remove //nolint:govet comments ( #1729 )
2024-03-02 16:19:52 +01:00
Oleksandr Redko
190204cf1a
Upgrade golangci-lint to v1.56.2; fix gocritic issues ( #1722 )
2024-02-21 05:51:28 +01:00
Oleksandr Redko
ffdf59d04c
Enable gofumpt linter; format code gofumpt -w . ( #1576 )
2023-06-13 15:18:59 +02:00
Oleksandr Redko
934f04e330
Refactor golangci-lint config and remove redundant nolints ( #1486 )
...
* 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
2023-02-11 15:35:15 +08:00
Oleksandr Redko
c0c5f9cd38
doc,test: correct typos ( #1484 )
2023-02-09 09:29:28 +01:00
Erik Dubbelboer
a5f448fc97
Improve Client timeout ( #1346 )
...
Don't run requests in a separate Goroutine anymore. Instead use proper
conn deadlines to enforce timeouts.
- Also contains some linting fixes.
2022-07-29 19:03:15 +02:00
Erik Dubbelboer
7a5afddf5b
Use %v for errors and %q for strings ( #1262 )
...
Mostly in tests.
2022-04-01 18:11:16 +02:00
Erik Dubbelboer
4e63057c0f
Make argsKV more predictable
...
Fixes #932
2020-12-26 16:53:48 +01:00
anshul-jain-aws
f710c2d320
Fixing deletion of headers/queryargs having multiple values. ( #918 )
2020-11-24 09:18:38 +01:00
Erik Dubbelboer
34a61fe63f
Update linting ( #851 )
2020-07-17 14:22:28 +02:00
Erik Dubbelboer
32793db72d
Run golangci-lint using a Github Action
2019-11-16 18:09:28 +01:00
ZhangYunHao
707b1c1917
Format errors ( #679 )
...
* format errors
* Server is a type name
* Fix typo
2019-10-23 20:12:59 +08:00
Erik Dubbelboer
c3d82ca3a4
Speed up testing by running tests in parallel
2019-10-16 10:20:13 +02:00
ZYunH
ae421163c5
Improve appendQuotedPath and AppendQuotedArg ( #654 )
...
* Update bytesconv.go
* Modify tests
* Remove unnecessary comments
* Update args_test.go
* Add test for appendQuotedPath
* Fix 11202 issue
* Fix some problems
2019-09-18 13:52:04 +02:00
xuecai
ed3793a1e1
add tests for copyto ( #545 )
...
* add tests for copyto
* add HeaderCopy Test reflect.DeepEqual
2019-02-17 10:11:45 +00:00
xuecai
c88be72d77
add method Sort in args ( #505 )
...
* 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
2019-01-04 18:38:56 +03:00
xuecai
4fb459a45e
fix args empty string be changed to boolen ( #502 )
...
Add support for empty args
2018-12-30 19:56:58 +01:00
Erik Dubbelboer
d4f0cf56d8
Remove fasthttp.ByteBuffer
...
As advertised in https://github.com/valyala/fasthttp/commit/b5f96d4b4120bb1e09c23ac32baf21a14da4a71d
2018-10-01 14:15:29 +08:00
Aliaksandr Valialkin
e5f51c1191
added missing byte 0xFF into hex2intTable. This fixes panic when decoding specially crafted string like "%\xff"
2017-12-07 14:09:41 +02:00
Aliaksandr Valialkin
b69eba7101
Added Args.GetBool helper
2017-01-30 19:47:15 +02:00
Aliaksandr Valialkin
12ba989984
Issue #69 : Added RequestHeader.Add and ResponseHeader.Add for adding multiple headers with the same key
2016-03-29 17:11:43 +03:00
Aliaksandr Valialkin
e9207dac9e
Added Args.Add()
2016-03-29 16:49:42 +03:00
Aliaksandr Valialkin
5a26dcce53
Added AcquireArgs and ReleaseArgs helper functions
2016-02-19 12:53:39 +02:00
Aliaksandr Valialkin
db0b8124a5
Added Args.PeekMulti for obtaining multiple query arg values for the given key
2016-02-15 14:01:22 +02:00
Aliaksandr Valialkin
bfce0fa31c
substituted bytes.Buffer by ByteBuffer in tests where appropriate
2016-02-12 14:15:28 +02:00
Aliaksandr Valialkin
eb18481efb
Escape query args chars according to http://www.w3.org/TR/html5/forms.html#form-submission-algorithm
2015-12-23 19:26:48 +02:00
Aliaksandr Valialkin
ea8a7f54d5
Do not escape '-' and '_' in url path and query args
2015-12-22 20:18:19 +02:00
Aliaksandr Valialkin
b3c0a2cf75
Do not escape the most frequently used chars in uri path such as ':~=,'
2015-12-22 20:13:45 +02:00
Aliaksandr Valialkin
48c0f89ee7
Added Stringer implementations to URI, Args and Cookie
2015-11-19 12:51:34 +02:00
Aliaksandr Valialkin
b5a101843a
Added SetUint helper to Args
2015-11-19 12:27:01 +02:00
Aliaksandr Valialkin
88e41d9b08
Removed accessors converting []byte to string, i.e. allocating memory. This should reduce memory usage for apps using fasthttp, since now they shoud either use []byte or do string() conversion on their own :)
2015-11-14 18:25:00 +02:00
Aliaksandr Valialkin
d70261286c
Added CopyTo, VisitAll and *Bytes* helper functions to Args, RequestHeader and ResponseHeader
2015-10-27 12:53:33 +02:00
Aliaksandr Valialkin
e9d6d7f561
Document Request, Response, RequestHeader, ResponseHeader, URI and Args
2015-10-23 15:56:12 +03:00
Aliaksandr Valialkin
bf2a91a77b
Do not encode dot in args
2015-10-22 17:48:14 +03:00
Aliaksandr Valialkin
a049630bca
initial commit
2015-10-19 01:21:09 +03:00