Commit Graph

505 Commits

Author SHA1 Message Date
Aliaksandr Valialkin edcfdbcec9 Issue #14: added support for response body compression 2015-12-25 12:26:34 +02:00
Aliaksandr Valialkin 84e14eb376 Reduced test time for TestClientManyServers 2015-12-25 12:24:40 +02:00
Aliaksandr Valialkin e4c3007338 Improved RequestCtx.WriteString() test 2015-12-24 20:54:17 +02:00
Aliaksandr Valialkin 80105c1a85 Added RequestCtx.WriteString 2015-12-24 20:48:05 +02:00
Aliaksandr Valialkin 138215002e Added 'src = src[:0]' hack for nil src into readme 2015-12-24 18:49:33 +02:00
Aliaksandr Valialkin 223c02fe41 Issue #18: mention @leavengood 's websocket implementation in readme 2015-12-24 18:48:25 +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 d2db95337f Removed 'v interface{}' hack from structs managed via sync.Pool, since it has no sense 2015-12-23 11:39:40 +02:00
Aliaksandr Valialkin 9d4cd451d9 test URI.Update() with path containing non-ASCII chars 2015-12-23 11:29:17 +02:00
Aliaksandr Valialkin e4ed4ab3c0 Moved appendQuotedPath to bytesconv 2015-12-23 11:22:14 +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 6a8707cd8d Import fasthttp in server examples 2015-12-21 11:32:27 +02:00
Aliaksandr Valialkin 215f1d2caf Added an example for HostClient 2015-12-21 11:29:12 +02:00
Aliaksandr Valialkin 5379f55d86 Pull request #21: updated docs 2015-12-20 15:51:13 +02:00
Aliaksandr Valialkin 07b8b8b873 Merge pull request #21 from buaazp/master
Redirect 307 instead of 302
2015-12-20 15:48:39 +02:00
招牌疯子 abc35a8dc2 Redirect 307 instead of 302 2015-12-20 12:32:45 +08:00
Aliaksandr Valialkin d54fa3f450 FS: parent path fix 2015-12-20 02:15:23 +02:00
Aliaksandr Valialkin cc54f8f447 FS: properly generate parent path 2015-12-20 02:08:46 +02:00
Aliaksandr Valialkin 2771603952 FS: show file modification time in GMT tz and truncate it to seconds 2015-12-20 02:00:54 +02:00
Aliaksandr Valialkin f94be39128 FS: make directory names bold on index pages 2015-12-20 01:52:41 +02:00
Aliaksandr Valialkin 3553e250c9 Use utf-8 charset for directory index generated by FS* 2015-12-20 01:26:41 +02:00
Aliaksandr Valialkin 052a3cfb65 Substitute EqualBytesStr(s, b) by string(b) == s 2015-12-19 20:44: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 cf6efe4c3f Export AcquireRequest, AcquireResponse, ReleaseRequest and ReleaseResponse 2015-12-19 20:25:03 +02:00
Aliaksandr Valialkin 858fdcea40 Added new status codes from go1.6 2015-12-19 19:59:38 +02:00
Aliaksandr Valialkin 208a870655 Typo fix 2015-12-17 12:54:13 +02:00
Aliaksandr Valialkin 23df3794ba Mention fasthttprouter in the 'switching from net/http to fasthttp' chapter 2015-12-17 12:53:09 +02:00
Aliaksandr Valialkin 38473d3cf1 Issue #20: Added TimeoutErrorWithResponse helper function to RequestCtx 2015-12-17 12:25:53 +02:00
Aliaksandr Valialkin 032414c0ac Use utf-8 charset in defaultContentType 2015-12-16 21:17:16 +02:00
Aliaksandr Valialkin 3ab54e2452 Issue #20: Added TimeoutErrorWithCode helper function to RequestCtx 2015-12-16 21:13:59 +02:00
Aliaksandr Valialkin f520ed8177 Follow-up tests after the pull request #19: added missing tests 2015-12-16 20:00:17 +02:00
Aliaksandr Valialkin 7e6c0f5968 Merge pull request #19 from buaazp/master
Fixed client copy resp from respCopy inversely
2015-12-16 19:59:32 +02:00
Aliaksandr Valialkin db76b9ca95 Issue #8: mention fasthttprouter in readme 2015-12-16 16:52:54 +02:00
Aliaksandr Valialkin b805a92a29 Fixed a typo 2015-12-16 16:52:28 +02:00
招牌疯子 cd6b2ebf66 Fixed client copy resp from respCopy inversely 2015-12-16 13:50:03 +08:00
Aliaksandr Valialkin b00a213a93 Moved ctx.UserValue from standard map to custom userData. This should improve its' performance for common case when ctx contains up to 10 user values 2015-12-11 16:40:55 +02:00
Aliaksandr Valialkin 3222ab8c8c Added AppendIPv4 and ParseIPv4 helper functions 2015-12-11 13:11:15 +02:00
Aliaksandr Valialkin 752f493324 Refer to PathRewriteFunc as net/http.StripPrefix substitution 2015-12-10 13:26:46 +02:00
Aliaksandr Valialkin 400114e9fe Added RequestCtx.NotFound() helper 2015-12-10 13:22:23 +02:00
Aliaksandr Valialkin 6db1946298 Use ctx.UserAgent() shortcut instead of ctx.Request.Header.UserAgent() 2015-12-10 13:17:21 +02:00
Aliaksandr Valialkin 180e104034 Fixed misleading comments in workerpool 2015-12-10 12:05:36 +02:00
Aliaksandr Valialkin 1f36aa1f8f clarify on why 'Connection: close' response header is set only for non-http/1.1 requests 2015-12-10 11:56:23 +02:00
Aliaksandr Valialkin 71e8c28a95 Issue #16: properly set 'Connection' response header 2015-12-10 11:47:25 +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 34c825a772 Set response content-length before writing response header 2015-12-10 08:43:49 +02:00
Aliaksandr Valialkin 22a408b7fb fs: decrement readers count if the file wasn't modified 2015-12-10 08:41:08 +02:00
Aliaksandr Valialkin ed8d883146 Ignore .pprof files 2015-12-10 08:39:12 +02:00
Aliaksandr Valialkin ebf9968b68 Renamed fshandler to fs 2015-12-09 18:52:23 +02:00