Aliaksandr Valialkin
|
c9c8d72607
|
Issue #78: immediately flush chunked data to client
|
2016-04-15 23:14:38 +03:00 |
|
Aliaksandr Valialkin
|
8d147e45af
|
Issue #76: fixed data races in TimeoutHandler and RequestCtx.TimeoutError*. Updated tests for catching similar data races in the future
|
2016-04-06 15:08:34 +03:00 |
|
Aliaksandr Valialkin
|
9f20a62336
|
added workerpool tests
|
2016-03-31 14:41:27 +03:00 |
|
Aliaksandr Valialkin
|
7d29fb3b3d
|
server: added DisableKeepalive option for disabling keep-alive connections
|
2016-03-31 10:05:31 +03:00 |
|
Aliaksandr Valialkin
|
d444ab9169
|
Server: write error response when concurrency limit or per-ip conn limit is exceeded before closing the connection. This should improve server diagnostics
|
2016-03-28 18:42:40 +03:00 |
|
Aliaksandr Valialkin
|
0a85495ae0
|
Validate multipart form value in server test
|
2016-03-02 20:15:02 +02:00 |
|
Aliaksandr Valialkin
|
15ffe2f795
|
Issue #63: added helper functions for starting https server with certificates embedded into the app
|
2016-03-02 15:23:21 +02:00 |
|
Aliaksandr Valialkin
|
877a47395f
|
Issue #61: use proper content-length in multipart/form-data tests
|
2016-03-01 18:12:00 +02:00 |
|
Aliaksandr Valialkin
|
8581513fa2
|
Issue #61: server: properly read multipart/form-data
|
2016-03-01 18:07:52 +02:00 |
|
Aliaksandr Valialkin
|
dd6954f4b2
|
Issue #57: Server: added ability to disable header names' normalizing
|
2016-02-25 14:00:04 +02:00 |
|
Aliaksandr Valialkin
|
108d002365
|
Added tests for Server.ReduceMemoryUsage flag
|
2016-02-24 15:45:56 +02:00 |
|
Aliaksandr Valialkin
|
115b98672e
|
Make sure that the server always closes connection after HTTP/1.0 request without 'Connection: keep-alive' header
|
2016-02-22 23:00:36 +02:00 |
|
Aliaksandr Valialkin
|
b8f996c13f
|
Added more tests for keep-alive and non-keep-alive connections during HTTP/1.0 requests
|
2016-02-22 22:51:12 +02:00 |
|
Aliaksandr Valialkin
|
9f608dd1fd
|
Issue #51: Make RequestCtx.SendFile a synonim to ServeFile. This breaks RequestCtx.SendFile API, but I believe the new behaviour of SendFile outweights API breakage
|
2016-02-17 11:35:36 +02:00 |
|
Aliaksandr Valialkin
|
910e5a9d2a
|
Added FormFile and FormValue helpers to RequestCtx in order to be on par with net/http
|
2016-01-08 15:03:02 +02:00 |
|
Aliaksandr Valialkin
|
a175504c5f
|
improved 'connection: close' server tests
|
2016-01-08 13:52:28 +02:00 |
|
Aliaksandr Valialkin
|
c5d9023043
|
Issue #30: properly handle content-length for HEAD responses
|
2016-01-05 18:02:50 +02:00 |
|
Aliaksandr Valialkin
|
7f5b710e05
|
Issue #31: do not send response body for HEAD requests
|
2016-01-05 16:53:38 +02:00 |
|
Aliaksandr Valialkin
|
84af73053f
|
Added tests for RequestCtx.*UserValue* functions
|
2016-01-05 15:59:33 +02:00 |
|
Aliaksandr Valialkin
|
3284c3e671
|
Pull request #24: added support for '100 Continue' responses and 'Expect: 100-continue' requests. Kudos to @celer
|
2015-12-25 16:11:20 +02:00 |
|
Aliaksandr Valialkin
|
149f0f38b7
|
Issue #14: added CompressHandler wrapper for transparent response compression support
|
2015-12-25 13:33:01 +02:00 |
|
Aliaksandr Valialkin
|
e4c3007338
|
Improved RequestCtx.WriteString() test
|
2015-12-24 20:54:17 +02:00 |
|
Aliaksandr Valialkin
|
38473d3cf1
|
Issue #20: Added TimeoutErrorWithResponse helper function to RequestCtx
|
2015-12-17 12:25:53 +02:00 |
|
Aliaksandr Valialkin
|
3ab54e2452
|
Issue #20: Added TimeoutErrorWithCode helper function to RequestCtx
|
2015-12-16 21:13:59 +02:00 |
|
Aliaksandr Valialkin
|
71e8c28a95
|
Issue #16: properly set 'Connection' response header
|
2015-12-10 11:47:25 +02:00 |
|
Aliaksandr Valialkin
|
9c18f79145
|
Added support for If-Modified-Since to SendFile and FS
|
2015-12-09 18:51:51 +02:00 |
|
Aliaksandr Valialkin
|
52999aff94
|
Added SetBodyStreamWriter for streaming response body
|
2015-12-09 16:33:07 +02:00 |
|
Aliaksandr Valialkin
|
9bac0d4123
|
Added RequestCtx.SendFile()
|
2015-12-08 15:18:21 +02:00 |
|
Aliaksandr Valialkin
|
4cf82252e3
|
Added ability to filter out non-GET requests
|
2015-11-29 12:49:01 +02:00 |
|
Aliaksandr Valialkin
|
145fa563c6
|
Removed flackiness from Logger tests by skipping request duration
|
2015-11-28 20:45:02 +02:00 |
|
Aliaksandr Valialkin
|
9e35210a5a
|
Fixed possible data race on RequestCtx.TimeoutError if connection's buffered reader is attached to ctx.fbr
|
2015-11-24 16:56:29 +02:00 |
|
Aliaksandr Valialkin
|
45ed911251
|
Improved RequestCtx.Hijack() - now HijackHandler works with the real net.Conn instead of fake io.ReadWriter. Also reduced memory usage by releasing empty read buffers on hijacked connections
|
2015-11-24 13:55:00 +02:00 |
|
Aliaksandr Valialkin
|
146145240d
|
Added RequestCtx.Hijack() for connections' hijacking
|
2015-11-23 19:41:43 +02:00 |
|
Aliaksandr Valialkin
|
a81d93c2ae
|
Added ability to limit keep-alive connection lifetime
|
2015-11-23 14:17:49 +02:00 |
|
Aliaksandr Valialkin
|
a8bfab03d8
|
API prettifying: ServeConnTime -> ConnTime, ServeConnRequestNum -> ConnRequestNum
|
2015-11-22 01:29:42 +02:00 |
|
Aliaksandr Valialkin
|
954a0615dc
|
Fixed a typo in RequestCtx.SetConnectionClose()
|
2015-11-19 11:51:04 +02:00 |
|
Aliaksandr Valialkin
|
a2601c68af
|
API consistency change - make Response.StatusCode accessor
|
2015-11-19 11:39:20 +02:00 |
|
Aliaksandr Valialkin
|
86fe38c7a2
|
Hide Respone and Request body behind Body accessors
|
2015-11-18 14:00:24 +02:00 |
|
Aliaksandr Valialkin
|
f3b4ff17b1
|
Added accessors for determining ServeConn call start time and the sequence number of request served in the connection
|
2015-11-17 16:29:14 +02:00 |
|
Aliaksandr Valialkin
|
2dbf142a06
|
convert connectionClose to accessor
|
2015-11-16 18:23:08 +02:00 |
|
Aliaksandr Valialkin
|
c728643d4a
|
Access Content-Length via ContentLength accessor
|
2015-11-16 18:09:05 +02:00 |
|
Aliaksandr Valialkin
|
f1f78f0828
|
Hide Request.URI and Request.PostArgs behind accessors, which automatically call parse URI and PostArgs on first access
|
2015-11-15 23:47:22 +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
|
2e78d83bf7
|
Hide Request.RequestURI behind accessors in order to prevent users shooting in the foot when assigning to Request.RequestURI directly
|
2015-11-14 17:58:58 +02:00 |
|
Aliaksandr Valialkin
|
1f81c87c38
|
Substituted direct access to Request.Method by accessors, so package users don't shoot in the foot when assigning directly to Request.Method
|
2015-11-14 17:34:12 +02:00 |
|
Aliaksandr Valialkin
|
3f0794bcd1
|
Added RequestCtx.LocalAddr() for determining server address for the current connection
|
2015-11-12 21:50:44 +02:00 |
|
Aliaksandr Valialkin
|
69758b81d6
|
Accept net.Conn instead of io.ReadWriteCloser in Serve*() methods, since in reality we use net.Conn methods such as RemoteAddr, SetReadDeadline and SetWriteDeadline
|
2015-11-11 16:17:12 +02:00 |
|
Aliaksandr Valialkin
|
a0ee798bbe
|
Added RequestCtx.Init() helper for custom Server implementations
|
2015-11-09 18:41:27 +02:00 |
|
Aliaksandr Valialkin
|
3aa2987131
|
Substituted RequestCtx.shadow with more clear timeoutErrMsg
|
2015-11-09 11:03:50 +02:00 |
|
Aliaksandr Valialkin
|
5a6e973ab3
|
Log request duration in RequextCtx.Logger()
|
2015-11-06 16:21:49 +02:00 |
|