Commit Graph

1179 Commits

Author SHA1 Message Date
Kirill Danshin d644da4382 Update README.md 2019-09-18 19:20:23 +03: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
Daniel Firsht ee8450036e Added option to disable path normalization (#649) 2019-09-18 08:56:18 +02:00
Erik Dubbelboer c6037ab3b4 Update fuzzit 2019-09-16 15:03:59 +02:00
Erik Dubbelboer 8b0b919f26 Fix FasthttpSocksDialer documentation v1.5.0 2019-09-13 21:47:26 +02:00
Erik Dubbelboer b29d896c75 Fix fuzzit for Go 1.13 2019-09-12 11:07:43 +02:00
Erik Dubbelboer ec83abee46 Also test with the new Go 1.13 2019-09-12 10:39:04 +02:00
Erik Dubbelboer 7e6a4c887b Update dependencies 2019-09-07 10:20:54 +02:00
Erik Dubbelboer e5e21db0c3 Reuse the socks5 dialer
Fixes https://github.com/valyala/fasthttp/issues/644
2019-09-07 10:13:56 +02:00
Kazushi Kitaya 8713335f54 Fix data race in fasthttputil.pipeConn (#645)
* add tests for fasthttputil.InmemoryListener
* fix data race in pipeConn
* update use of readDeadlineChLock
2019-09-04 17:57:51 +02:00
Nikolay Markov 4fa45fadd2 Propagating custom SkipBody value to allow explicitly skip body reading for responses (#647) 2019-09-04 17:54:12 +02:00
andrewheberle 8ce231e840 Add stub/wrapper for reuseport.Listen on Windows platforms (#638)
* Create Windows stub for reuseport.Listen
2019-08-30 12:22:25 +02:00
Erik Dubbelboer 1241ed7a91 Add fuzzit support (#634)
* Add fuzzit support

* Do local regression fuzz testing
2019-08-24 08:56:51 +02:00
Ian Leue d4833f60cb Use ipv6-compliant methodology for joining host port (#640)
* Use ipv6-compliant methodology for joining host port

* Fix change
2019-08-23 17:19:47 +03:00
ZYunH c5413ffda8 A faster s2b function (#637)
* Use pointer for smaller stack space
2019-08-19 10:45:03 +02:00
Mike Faraponov ce02b85a9c Add ability to set timeout for handshake (#631)
* Fixed issue with handshake timeout
2019-08-18 14:34:47 +02:00
Erik Dubbelboer 2edabf3b76 Add support for user:pass in URLs (#614)
Fixes #609
2019-08-18 11:23:33 +02:00
Ciprian Dorin Craciun 85217e0d5e Correctly handle NoDefaultContentType without setting an Content-Type value (#628)
If `NoDefaultContentType` is set, but no actual `Content-Type` header is set, do not send the wrong `Content-Type: ` header
2019-08-13 11:53:03 +02:00
Sergio Andrés Virviescas Santana b97bc32543 Update README (#621) 2019-08-02 17:09:28 +02:00
wencan 55ea350c55 Update README.md (#610)
add related project: kit-plugins
2019-07-17 10:12:00 +02:00
Marcelo Pires ccaae97f5b Support {readTimeout,maxBodySize,writeTimeout} per request based on the headers. (#598) 2019-07-12 14:42:07 +02:00
Erik Dubbelboer a0248ed3a1 Fix read timeout with nothing read
Fixes #605
2019-07-11 22:10:41 +02:00
Dair Aidarkhanov 1bd0404ced Removing redundant else statement from HeaderCookie (#596) v1.4.0 2019-07-03 23:40:48 +02:00
Rem 9ba4cef1ba Support SameSite value "None" cookie attribute (#581)
* Support SameSite value "None" cookie attribute

* Fix typo in CookieSameSiteNoneMode comment

* fix comment for SameSite None
2019-06-14 16:07:33 +02:00
losingle 9494955f8e ADD TimeoutWithCodeHandler support (#589)
* ADD TimeoutWithCodeHandler support

* FIX description
2019-06-06 17:17:40 +02:00
Maxim Lebedev d3715c361c Used Headers constants instead raw strings 2019-05-28 18:04:24 +03:00
Maxim Lebedev a4505cb573 Added headers keys constants 2019-05-28 18:04:24 +03:00
Erik Dubbelboer f14dea7633 Option for immediate header flush (#575)
* Option for immediate header flush

* Export struct var and add specs
2019-05-28 10:47:45 +02:00
Erik Dubbelboer 20ea781823 Add warning to RequestCtx.Error
Fixes #578
2019-05-28 10:46:25 +02:00
Erik Dubbelboer 1ee3b845b6 Fix Client.DoTimeout race condition 2019-05-23 13:15:14 +02:00
Vladimir Shteinman 74ad0f8e9b Export struct var and add specs 2019-05-22 23:23:02 +03:00
Kirill Danshin c754e0ffba Create SECURITY.md 2019-05-21 13:49:02 +03:00
Vladimir Shteinman 9551d9544d Option for immediate header flush 2019-05-18 17:04:30 +03:00
xyb 46469b532d Fix comment. (#571)
Signed-off-by: Xiao YongBiao <xyb4638@gmail.com>
v1.3.0
2019-05-15 08:31:18 +02:00
Maxim Lebedev f544170d63 Added methods constants (#567)
*  Added methods constants

* 👌 Fixed methods comment due to review changes
2019-05-06 17:54:49 +02:00
Erik Dubbelboer 15dbe35bb5 Timing fixes (#564)
- Improved timing code to be much cleaner
- Add IdleTimeout
- Remove obsolete optimization (was fixed in Go 2 years ago: https://github.com/golang/go/issues/15133#issuecomment-271571395)
2019-04-29 16:12:47 +03:00
Erik Dubbelboer ed16dc07fd Fix go test -bench 2019-04-13 23:17:55 +02:00
Erik Dubbelboer ea427d2f44 Fix nil Response support in Do* methods
Fixes #561
2019-04-11 19:30:20 +02:00
Kirill Danshin 517df88332 added option to keep hijacked connection open (#550)
Signed-off-by: Kirill Danshin <kirill@danshin.pro>
2019-03-02 23:01:48 +03:00
Kirill Danshin 2d52ea9ef5 enable 1.12 support
Signed-off-by: Kirill Danshin <kirill@danshin.pro>
2019-03-02 09:20:34 +03:00
Kirill Danshin 64c234a44a reset request before ctx release; fixes #548
Signed-off-by: Kirill Danshin <kirill@danshin.pro>
2019-03-02 09:14:45 +03:00
Ciprian Dorin Craciun 733a6505a9 Support huge read-only []byte response bodies (#477)
* Add `Response.SetBodyRaw` method that serves a `[]byte` slice without touching it  (as an alternative to `SetBody`)
* Update various response related functions that are impacted after the incoduction of `Response.bodyRaw`
* Add a few test-cases in relation to `Response.SetBodyRaw`
2019-02-24 08:32:54 +00:00
xuecai ed3793a1e1 add tests for copyto (#545)
* add tests for copyto
* add HeaderCopy Test reflect.DeepEqual
v1.2.0
2019-02-17 10:11:45 +00:00
Erik Dubbelboer 6453619524 Remove methods that had been deprecated in 2015 2019-02-16 15:10:39 +01:00
Tiago Peczenyj 0558e349d7 fix context Err() issue (#544)
* fix context Err() issue

Co-Authored-By: peczenyj <tiago.peczenyj@gmail.com>
2019-02-16 10:53:21 +00:00
Sergio Andrés Virviescas Santana 7ace827541 Add Kratgo to related projects (#543)
* Add Kratgo to related projects
2019-02-16 10:51:04 +00:00
xuecai 10b98c2cdf add conn's address info in Response (#537)
* reset commit
* fix response copy bug; add tests;
2019-02-16 10:50:14 +00:00
Erik Dubbelboer 61039c93c2 Add zero allocation guarantee tests 2019-02-12 21:26:41 +01:00
Erik Dubbelboer 02b7301203 Fix TechEmpower performance degradation
Fixes #533
2019-02-12 20:34:43 +01:00
Erik Dubbelboer e722d81dc9 Fix HostClient.MaxConns 2019-02-11 21:12:32 +01:00