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