Harald Nordgren
f9004bedab
Bump Go versions and use '.x' to always get latest minor versions
2018-10-28 23:26:41 +05:30
Gabriel Pérez S
996610f021
Schema changes detection with HostClient
...
Related with the issue https://github.com/valyala/fasthttp/issues/244
2018-10-14 16:19:09 +03:00
Erik Dubbelboer
afcef43292
Add RequestCtx.Conn() method
...
Fixes #286
2018-10-14 10:38:42 +02:00
Erik Dubbelboer
573be81328
Hopefully fix TestShutdownReuse flakiness
2018-10-14 10:18:21 +02:00
Erik Dubbelboer
63ea2d380f
Remove invalid test introduced in #378
...
Header normalization has been changed since pull request #378 was made.
These days header case doesn't matter when looking up headers.
2018-10-06 01:02:45 +08:00
Tommy Chen
d459e257bf
Use form headers in WriteMultipartForm
...
CreateFormFile always set Content-Type header to application/octet-stream.
Use CreatePart instead so all headers in the multipart form can be used.
2018-10-05 19:02:16 +03:00
Erik Dubbelboer
4dfc12997e
Add RequestHeader.RawHeaders()
2018-10-05 19:00:55 +03:00
Erik Dubbelboer
8dfc881b9e
Added Server.nextProtos
...
This implementation allows user to handle crypto/tls.Config.NextProtos to use their own handlers for the negotiated TLS protos like HTTP/2.
Workerpool where changed to adapt WorkerFunc to another conns server with ServeConn type and contains the Server structure which creates to check configured protos.
2018-10-05 16:35:59 +08:00
mmta
33b80a5951
Add support for named profiles like heap, goroutine, threadcreate, allocs, block, and mutex.
2018-10-03 18:15:43 +03:00
Oleg Kovalov
4087354082
Support Go modules
v1.0.0
2018-10-01 15:33:33 +08: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
bslizon
761788a34b
Add tcp keepalive
2018-09-27 15:22:58 +03:00
bslizon
2e04bb8884
enable TCP keep-alives
2018-09-27 15:22:58 +03:00
Erik Dubbelboer
be257bcef6
Improve Shutdown behaviour
2018-09-27 17:38:34 +08:00
Erik Dubbelboer
7ec2b18772
Remove race condition from test
2018-09-24 22:46:21 +08:00
Erik Dubbelboer
b3b6b8cb28
Fix Request.connectionCloseFast bugs
...
See https://github.com/valyala/fasthttp/pull/265
and https://github.com/valyala/fasthttp/issues/220
and https://github.com/valyala/fasthttp/issues/264
2018-09-24 21:30:30 +08:00
Erik Dubbelboer
3d4ce5b57c
Fix data race errors
...
Server.Shutdown was causing data race errors. One issue was that it was
possible for sync.WaitGroup.Add() to be called while Shutdown was already
calling .Wait(). To fix this I have removed the WaitGroup and replaced
it with atomic counters and a semi busy wait loop.
Fixes #416
2018-09-24 21:22:40 +08:00
Erik Dubbelboer
1ba43613e8
Clarify how to do relative redirects
...
Fixes #328
2018-09-20 18:06:11 +08:00
Erik Dubbelboer
b5f96d4b41
WARNING: fasthttp.ByteBuffer will be removed!
2018-09-20 16:21:42 +08:00
Erik Dubbelboer
c67f81e5f9
Use PostArgs in client
...
See: https://github.com/erikdubbelboer/fasthttp/issues/17
2018-09-20 15:22:18 +08:00
Erik Dubbelboer
d53df67945
Fix Content-Type bug in FS
...
Fixes #417
2018-09-20 11:36:07 +08:00
David Byttow
da9ba61e3b
Allows for empty content type by default. Fixes #214
2018-09-19 01:28:32 +03:00
Emir Beganović
351f874e5e
Fix small typo in readme
2018-09-17 14:42:35 +08:00
Oleg Kovalov
10a0540dfc
Remove redundant else statements
2018-09-14 10:00:13 +08:00
Erik Dubbelboer
869903cf7a
Fix Cookie peek
...
See: https://github.com/valyala/fasthttp/issues/313
2018-09-13 12:42:54 +08:00
Erik Dubbelboer
761869f3f8
Close the file before trying to rename in SaveMultipartFile
...
On Windows systems it is not possible to rename files that are opened.
2018-09-13 12:39:45 +08:00
Erik Dubbelboer
4d08c11c11
Remove RequestHeader.isGet
...
This small optimization is not worth the extra code complexity.
2018-09-13 12:36:16 +08:00
Jerry Jacobs
6025a4a41c
Allow overwrite of ContentType by caller of RequestCtx.ServeFile
2018-09-13 12:27:17 +08:00
David Byttow
dbc9965d33
Adds support for max-age cookie value. Fixes #184 ( #412 )
...
Adds support for max-age cookie value
2018-09-13 12:19:38 +08:00
Iskander Sharipov
5c41b44ca7
use proper "Deprecated" comment format
...
Found using https://go-critic.github.io/overview#deprecatedComment-ref
2018-09-11 22:29:16 +03:00
Erik Dubbelboer
7796335d5f
Do case insensitive comparisons for headers and cookies
2018-09-11 20:07:09 +03:00
Erik Dubbelboer
c6fd90e432
Don't suppresses TLS related errors
...
See https://github.com/valyala/fasthttp/issues/300
2018-09-05 20:07:23 +03:00
Erik Dubbelboer
50bdd6c77c
Fix appendQuotedPath to include all allowed characters
2018-09-05 20:06:18 +03:00
Erik Dubbelboer
7529e6b2e5
Add SOCKS5 dialer
...
See: https://github.com/valyala/fasthttp/issues/161
2018-09-05 19:58:53 +03:00
Erik Dubbelboer
d7688109a5
Reset all fields when releasing a clientConn
...
This fixes a bug where a previous read deadline timer would be reused
for a new connection preventing Client.ReadTimeout from working
properly.
See: https://github.com/valyala/fasthttp/pull/259
2018-09-01 13:20:36 +08:00
Jan Siemiński
6231e237de
Add ';' to unescaped characters
2018-09-01 13:00:11 +08:00
Erik Dubbelboer
5f6439b6df
Remove wrong documentation
2018-08-31 14:22:05 +08:00
Xu Qiaolun
ecb7cbdfb2
call the ConnState callbacks in Server.ServeConn
2018-08-30 15:20:32 +00:00
Xu Qiaolun
c88d0992b4
vendor ConnState type in fasthttp package
2018-08-30 15:20:32 +00:00
徐乔伦
71b7e99093
fix test case error
2018-08-30 15:20:32 +00:00
徐乔伦
69613e6feb
add support for http.ConnState
...
issue #205
2018-08-30 15:20:32 +00:00
Erik Dubbelboer
373357d2d4
Try the same formats as net/http for cookie expire
...
See: https://github.com/golang/go/blob/00379be17e63a5b75b3237819392d2dc3b313a27/src/net/http/cookie.go#L133-L135
Fixes #175
2018-08-29 22:55:21 +08:00
michael.kochegarov
19d2d06ab5
Configuration for automatic retry for idempotent calls
2018-08-29 22:26:04 +08:00
Erik Dubbelboer
2cc8e6be6d
go fmt ./...
2018-08-29 20:26:12 +08:00
Kirill Danshin
57b1f46d15
Update LICENSE
2018-08-28 19:55:09 +00:00
Kirill Danshin
0821f75aea
Update README.md
2018-08-27 22:23:26 +00:00
Erik Dubbelboer
d3181922e1
Fix connsCleaner sleep time
...
Fixes: https://github.com/valyala/fasthttp/issues/308
2018-08-27 21:49:31 +00:00
Erik Dubbelboer
b174f54b12
Add method to get cookie from response
2018-08-27 21:46:32 +00:00
Erik Dubbelboer
7c74b1f431
Remove duplicate check
...
Is already checked at https://github.com/valyala/fasthttp/blob/4a16377d6e780cb75b91962ea2100d83f7452565/http.go#L1190
and https://github.com/valyala/fasthttp/blob/4a16377d6e780cb75b91962ea2100d83f7452565/http.go#L1244
2018-08-27 21:46:12 +00:00
Erik Dubbelboer
26aa8e51e8
Allow whitespace after chunk size
...
There seems to be servers/load balancers that insert whitespaces
between the chunk-size number and \r\n.
2018-08-27 21:42:46 +00:00