Aliaksandr Valialkin
0f38881a9f
Added a link to parent directory in fshandler
2015-12-04 13:30:37 +02:00
Aliaksandr Valialkin
6a748e6e93
Added static files' handler
2015-12-04 13:21:52 +02:00
Aliaksandr Valialkin
0cd9a866a7
Added an example for RequestCtx.Logger
2015-12-04 13:14:38 +02:00
Aliaksandr Valialkin
19078dcdc1
Improved wording
2015-12-04 13:03:55 +02:00
Aliaksandr Valialkin
ed1d21e27d
Remove '/./' parts from path
2015-12-03 19:00:24 +02:00
Aliaksandr Valialkin
fab86ba9b4
Mention TimeoutError exception, which may be called when other goroutines access RequestCtx
2015-12-03 13:42:08 +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
ce603344f8
Added build tag to reuseport.go since it includes syscall package (accoding to https://www.youtube.com/watch?v=PAAkCSZUG1c :) )
2015-12-03 13:11:15 +02:00
Aliaksandr Valialkin
0b6cc4cbad
Issue #13 : add a (k,v) storage inside RequestCtx for user values, which may pass between middlewares
2015-12-02 20:32:49 +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
296de2f908
Added client benchmarks into readme
2015-12-02 19:28:12 +02:00
Aliaksandr Valialkin
cc9de9e860
Spelling fixes
2015-12-02 18:58:56 +02:00
Aliaksandr Valialkin
9f9a9e0719
Formatting
2015-12-02 18:55:09 +02:00
Aliaksandr Valialkin
c0e66746d8
Fixed spelling typo
2015-12-02 18:50:53 +02:00
Aliaksandr Valialkin
25a28229dc
Updated benchmark results in readme
2015-12-02 18:44:19 +02:00
Aliaksandr Valialkin
2c3b85d483
Benchmark server with 10K concurrent clients instead of 1K clients
2015-12-02 18:28:06 +02:00
Aliaksandr Valialkin
48192ad44c
Integrated AppendUint perfromance optimization from pull request #2 . Thanks to @EricLagergren
2015-12-02 15:01:13 +02:00
Aliaksandr Valialkin
704004d041
Issue #12 : added travis build status icon to readme
2015-12-02 14:22:16 +02:00
Aliaksandr Valialkin
b0aa8605a7
Issue #12 : an attempt to use gox for travis cross-compilation
2015-12-02 14:16:22 +02:00
Aliaksandr Valialkin
9f2b713eff
Added quick links to the top of readme
2015-12-02 14:03:26 +02:00
Aliaksandr Valialkin
a1d8e1a775
formatting
2015-12-02 13:59:33 +02:00
Aliaksandr Valialkin
aea77018ef
Added a section with []byte buffer tricks
2015-12-02 13:53:47 +02:00
Aliaksandr Valialkin
e823a9af54
Added missing parenthesis
2015-12-02 12:28:33 +02:00
Aliaksandr Valialkin
e9ca9a2274
Added a section about code profiling into 'switching from net/http to fasthttp'
2015-12-02 12:24:47 +02:00
Aliaksandr Valialkin
055f9ed5f7
Added a link to 'switching from net/http to fasthttp' at the top of readme
2015-12-02 12:18:53 +02:00
Aliaksandr Valialkin
58eba24fa0
Updated 'converting from net/http to fasthttp' section
2015-12-02 12:16:11 +02:00
Aliaksandr Valialkin
534693af18
Clear response body when setting body stream
2015-12-02 12:15:49 +02:00
Aliaksandr Valialkin
158fcfbb7f
Reset bodyStream when SetBody or ResetBody is called
2015-12-02 08:40:50 +02:00
Aliaksandr Valialkin
1cf0365cba
Updated net/http -> fasthttp conversion table
2015-12-02 08:37:53 +02:00
Aliaksandr Valialkin
1ddca5dc04
Added ResetBody
2015-12-02 08:36:31 +02:00
Aliaksandr Valialkin
3c903772f2
Avoid memory allocation when cleaning stale workers and connections
2015-12-02 08:24:55 +02:00
Aliaksandr Valialkin
c4e36ed95d
An attempt to fix formatting
2015-12-01 21:10:05 +02:00
Aliaksandr Valialkin
9f6ed6884a
Added r.Header.Get() and w.Header().Set() to net/http -> fasthttp cheat sheet
2015-12-01 21:08:33 +02:00
Aliaksandr Valialkin
ad74b77cbd
Updated net/http -> fasthttp cheat sheet
2015-12-01 21:04:57 +02:00
Aliaksandr Valialkin
14657b4dd5
run ravis tests only on go tip, since they are too slooooow
2015-12-01 20:35:39 +02:00
Aliaksandr Valialkin
635a7bfc43
Revert "An attempt to enable real cross-compilation in travis according to https://github.com/travis-ci/travis-ci/issues/2517#issuecomment-48725040 "
...
It looks like travis doesn't support gvm on testing step:
$ gvm cross $BUILD_GOOS $BUILD_GOARCH
/home/travis/build.sh: line 45: gvm: command not found
This reverts commit ac99921fa1 .
2015-12-01 20:32:28 +02:00
Aliaksandr Valialkin
1274656fbc
Added missing parenthesis
2015-12-01 19:21:29 +02:00
Aliaksandr Valialkin
8c04e99110
typo fix
2015-12-01 19:19:50 +02:00
Aliaksandr Valialkin
bb2a7ef7e0
An attempt to fix markdown formatting
2015-12-01 19:19:28 +02:00
Aliaksandr Valialkin
f7e1344103
Fixed a typo
2015-12-01 19:15:42 +02:00
Aliaksandr Valialkin
ac99921fa1
An attempt to enable real cross-compilation in travis according to https://github.com/travis-ci/travis-ci/issues/2517#issuecomment-48725040
2015-12-01 18:59:11 +02:00
Aliaksandr Valialkin
d32baf2c3a
Updated test matrix in .travis.yml according to https://golang.org/doc/install/source#environment
2015-12-01 18:47:03 +02:00
Aliaksandr Valialkin
f4eb3bd97f
Issue #12 : added initial .travis.yml
2015-12-01 18:34:19 +02:00
Aliaksandr Valialkin
495ed4f4a9
Issue #12 : added missing import
2015-12-01 18:08:25 +02:00
Aliaksandr Valialkin
7d7b9de494
Minor formatting fixes
2015-12-01 18:07:08 +02:00
Aliaksandr Valialkin
19e12a36d9
Added 'switching from net/http' section into readme
2015-12-01 17:57:05 +02:00
Aliaksandr Valialkin
031543894c
Added a link to examples in README.md
2015-12-01 16:25:49 +02:00
Aliaksandr Valialkin
5f952e632f
Microoptimization: substituted switch by if in decodeArgAppend, so the function may be inlined
2015-12-01 16:23:33 +02:00
Aliaksandr Valialkin
235d4932da
Check for stale workers and connections every 10 seconds instead of every second. This should reduce cleaners' overhead
2015-12-01 13:42:53 +02:00
Aliaksandr Valialkin
a3965934a1
Simplify GC life by zeroing references to closed worker chans and client conns
2015-12-01 13:32:05 +02:00