Aliaksandr Valialkin
|
81b5321d14
|
Removed misleading ConnectionCloseReal method from RequestHeader
|
2016-01-17 00:43:34 +02:00 |
|
Sebastian Schepens
|
fa88c5b853
|
Don't assume Content-Encoding: identity when request is 1xx, 204 or 304
|
2016-01-12 15:23:14 -03:00 |
|
Aliaksandr Valialkin
|
3bd3552062
|
Added ResetConnectionClose() to RequestHeader and ResponseHeader
|
2016-01-08 13:43:44 +02:00 |
|
Aliaksandr Valialkin
|
7d7c17c8d7
|
Do not send response body (and content-length) for 1xx, 204 and 304 responses
|
2016-01-06 15:22:52 +02:00 |
|
Aliaksandr Valialkin
|
2ff945b9ea
|
Properly reset scratch buffer for header values
|
2016-01-05 14:30:05 +02:00 |
|
Aliaksandr Valialkin
|
8a83396595
|
FS: added support for byte range requests
|
2016-01-05 14:05:07 +02:00 |
|
Aliaksandr Valialkin
|
69a05ffcaf
|
Issue #28: do not set default Content-Type for empty response
|
2016-01-04 14:56:49 +02:00 |
|
Aliaksandr Valialkin
|
e5d7485342
|
truncate raw headers buffer before passing to readRawHeaders
|
2015-12-31 15:37:41 +02:00 |
|
Aliaksandr Valialkin
|
da83f137b7
|
Added SetMultipartFormBoundary* to RequestHeader
|
2015-12-31 14:20:21 +02:00 |
|
Aliaksandr Valialkin
|
9074415b7a
|
Microoptimization for RequestHeader.IsGet()
|
2015-12-25 16:09:15 +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
|
5ff6be8fee
|
Substitute AppendBytesStr by append()
|
2015-12-19 20:38:10 +02:00 |
|
Aliaksandr Valialkin
|
ddfa9f5dc0
|
Clarify Append* return values
|
2015-12-19 20:29:17 +02:00 |
|
Aliaksandr Valialkin
|
495e130b8f
|
Issue #16: support 'Connection: keep-alive' header for non-http/1.1 requests and/or responses
|
2015-12-10 11:19:34 +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
|
4ac44f0c6c
|
Mention which structs are safe for use from concurrently running goroutines (Server, Client and HostClient) and which structs are unsafe to use from concurrently running goroutines - all the other
|
2015-12-03 13:38:59 +02:00 |
|
Aliaksandr Valialkin
|
fe212fe380
|
Issue #6: Add support for PATCH method and other methods which may contain body
|
2015-12-02 20:17:50 +02:00 |
|
Aliaksandr Valialkin
|
6a340b7334
|
Added request PUT method support
|
2015-11-29 11:32:44 +02:00 |
|
Aliaksandr Valialkin
|
b1ba91323e
|
Issue #6: allow setting content-type on on-POST requests
|
2015-11-28 19:46:15 +02:00 |
|
Aliaksandr Valialkin
|
efb4e2cd30
|
Fixed a typo
|
2015-11-28 14:17:11 +02:00 |
|
Aliaksandr Valialkin
|
01031f43e2
|
Added support form multipart/form-data POST requests
|
2015-11-27 16:23:02 +02:00 |
|
Aliaksandr Valialkin
|
52c04f13b2
|
Added support for 'Connection: Upgrade', so RequestHandler may detect such connections and hijack them
|
2015-11-24 15:48:10 +02:00 |
|
Aliaksandr Valialkin
|
9f7463cd28
|
Access Cookie members via accessors
|
2015-11-22 13:29:21 +02:00 |
|
Aliaksandr Valialkin
|
a862d8592a
|
Documentation update
|
2015-11-22 06:33:58 +02:00 |
|
Aliaksandr Valialkin
|
82aca55d5a
|
API consistency fix - GetCookie -> Cookie, PeekCookie -> Cookie
|
2015-11-22 02:16:05 +02:00 |
|
Aliaksandr Valialkin
|
22c2789727
|
Added WriteTo, AppendBytes and String methods to RequestHeander and ResponseHeader
|
2015-11-22 02:14:09 +02:00 |
|
Aliaksandr Valialkin
|
5407951c06
|
Do not parse raw headers when writing request headers. This should improve request proxying speed
|
2015-11-22 00:41:06 +02:00 |
|
Aliaksandr Valialkin
|
48c0f89ee7
|
Added Stringer implementations to URI, Args and Cookie
|
2015-11-19 12:51:34 +02:00 |
|
Aliaksandr Valialkin
|
ed68dfc5f6
|
Optimization: do not parse full requests headers on ConnectionClose and Header calls. This should speed up common case with GET requests on the server
|
2015-11-19 12:15:20 +02:00 |
|
Aliaksandr Valialkin
|
a2601c68af
|
API consistency change - make Response.StatusCode accessor
|
2015-11-19 11:39:20 +02:00 |
|
Aliaksandr Valialkin
|
835bf87605
|
API consistency: Clear -> Reset to be consistent with standard go packages
|
2015-11-18 17:55:28 +02:00 |
|
Aliaksandr Valialkin
|
2eff1422af
|
Added referer accessor to RequestHeader
|
2015-11-17 13:47:00 +02:00 |
|
Aliaksandr Valialkin
|
a45841e425
|
Optimized header lines' scanner
|
2015-11-17 12:52:43 +02:00 |
|
Aliaksandr Valialkin
|
651b992f58
|
Immediately parse POST request headers, since delayed parsing gives no any performance benefits
|
2015-11-17 12:08:07 +02:00 |
|
Aliaksandr Valialkin
|
81a60d8e4b
|
unoptimize response headers parsing, since it has no positive effect
|
2015-11-17 11:37:38 +02:00 |
|
Aliaksandr Valialkin
|
63aab18752
|
do not optimize for content-length access on response headers, since it works slower than full headers parsing
|
2015-11-17 11:10:52 +02:00 |
|
Aliaksandr Valialkin
|
6e785c7f03
|
Optimize access to ContentLength() and ConnectionClose() header methods
|
2015-11-17 10:02:25 +02:00 |
|
Aliaksandr Valialkin
|
18b881caa4
|
removed duplicate readRawHeaders code
|
2015-11-17 08:54:30 +02:00 |
|
Aliaksandr Valialkin
|
9c9c94f4e0
|
Postpone headers' parsing until first access
|
2015-11-16 20:22:02 +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
|
22461f2c90
|
Access user-agent via UserAgent accessor
|
2015-11-16 16:35:35 +02:00 |
|
Aliaksandr Valialkin
|
4797d4386d
|
access host header via Host accessor
|
2015-11-16 16:32:33 +02:00 |
|
Aliaksandr Valialkin
|
f86ba6d4ea
|
Access requestURI via RequestURI accessor
|
2015-11-16 16:25:09 +02:00 |
|
Aliaksandr Valialkin
|
9cddf93664
|
access method via Method
|
2015-11-16 16:16:05 +02:00 |
|
Aliaksandr Valialkin
|
35bf5aa661
|
Access ResponseHeader.server via Server accessor
|
2015-11-16 16:13:57 +02:00 |
|
Aliaksandr Valialkin
|
e264d1a4f8
|
Acccess Content-Type via ContentType() accessor
|
2015-11-16 16:06:28 +02:00 |
|
Aliaksandr Valialkin
|
ac64d65324
|
Postpone request cookies' parsing until required. This speeds RequestHandler which doesn't use cookies
|
2015-11-14 21:11:07 +02:00 |
|
Aliaksandr Valialkin
|
8a42c802f5
|
Optimized Peek() function for args and request header cookies
|
2015-11-14 20:38:47 +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 |
|