Aliaksandr Valialkin
|
e0225d4c98
|
typo fix
|
2015-12-09 16:36:16 +02:00 |
|
Aliaksandr Valialkin
|
1a06baebe3
|
Refer to SetBodyStreamWriter from SetBodyStream docs
|
2015-12-09 16:34:50 +02:00 |
|
Aliaksandr Valialkin
|
52999aff94
|
Added SetBodyStreamWriter for streaming response body
|
2015-12-09 16:33:07 +02:00 |
|
Aliaksandr Valialkin
|
37c8e563a1
|
Ignore built binaries from examples
|
2015-12-09 14:13:23 +02:00 |
|
Aliaksandr Valialkin
|
f94e6ce77e
|
Eliminated data race with readersCount
|
2015-12-09 14:02:09 +02:00 |
|
Aliaksandr Valialkin
|
2763d42da1
|
Renamed fshandler.go to fs.go
|
2015-12-09 14:01:39 +02:00 |
|
Aliaksandr Valialkin
|
4838a1852e
|
Updated tips and tricks section in README
|
2015-12-09 13:54:41 +02:00 |
|
Aliaksandr Valialkin
|
5f157c097e
|
Added UserAgent helper to RequestCtx
|
2015-12-09 13:48:33 +02:00 |
|
Aliaksandr Valialkin
|
6ad39dad61
|
Added SendFile to Response
|
2015-12-09 13:47:11 +02:00 |
|
Aliaksandr Valialkin
|
bc50b11813
|
Added AppendBody and SetBodyString helper methods to Request and Response
|
2015-12-09 13:43:06 +02:00 |
|
Aliaksandr Valialkin
|
a482b7d35c
|
Updated TODO
|
2015-12-08 15:22:17 +02:00 |
|
Aliaksandr Valialkin
|
42802cc79f
|
Spelling fix
|
2015-12-08 15:21:09 +02:00 |
|
Aliaksandr Valialkin
|
9bac0d4123
|
Added RequestCtx.SendFile()
|
2015-12-08 15:18:21 +02:00 |
|
Aliaksandr Valialkin
|
f244147c4f
|
removed obsolete comment
|
2015-12-08 14:12:20 +02:00 |
|
Aliaksandr Valialkin
|
d383fca082
|
Made Dial and DialFunc more visible in the documentation
|
2015-12-08 13:40:27 +02:00 |
|
Aliaksandr Valialkin
|
a96f8ea43c
|
Added FS struct, which may be used for fine grained setup of request handler for serving static files from local file system
|
2015-12-08 13:34:41 +02:00 |
|
Aliaksandr Valialkin
|
59316df4e0
|
Added HelloWorld server example
|
2015-12-08 12:18:54 +02:00 |
|
Aliaksandr Valialkin
|
ff63733774
|
Removed LimitedReader wrapper in writeBodyFixedSize, since it prevents sendfile triggering for FSHandler
|
2015-12-08 11:50:04 +02:00 |
|
Aliaksandr Valialkin
|
1e4e9fe9e6
|
Trigger sendfile for response body stream wrapped into io.LimitedReader
|
2015-12-08 11:30:01 +02:00 |
|
Aliaksandr Valialkin
|
b6c230a0fb
|
Moved the hack for triggering sendfile in bufio.ReadFrom from FSHandler to Response.Write, so all response body streams may benefit from sendfile optimization
|
2015-12-08 10:47:50 +02:00 |
|
Aliaksandr Valialkin
|
5c8ab236b8
|
typo fix
|
2015-12-08 10:45:16 +02:00 |
|
Aliaksandr Valialkin
|
3072afc5e7
|
Returned back io.LimitedReader wrapper for writing response body streams
|
2015-12-08 10:44:20 +02:00 |
|
Aliaksandr Valialkin
|
c1f7d2b1f0
|
Properly close response body stream
|
2015-12-08 10:27:37 +02:00 |
|
Aliaksandr Valialkin
|
0ac2d5f35e
|
Removed DialTLS*, since it must be handled by client code
|
2015-12-07 16:44:14 +02:00 |
|
Aliaksandr Valialkin
|
f2bf78799c
|
typo fix
|
2015-12-07 16:36:15 +02:00 |
|
Aliaksandr Valialkin
|
019996b9ea
|
Added ListenAndServeUNIX
|
2015-12-07 16:30:14 +02:00 |
|
Aliaksandr Valialkin
|
9c70042061
|
Exported default TCP dialers used by clients, so custom wrappers may be implemented around these dialers
|
2015-12-07 16:12:28 +02:00 |
|
Aliaksandr Valialkin
|
117487611a
|
gofmt
|
2015-12-07 15:49:36 +02:00 |
|
Aliaksandr Valialkin
|
32022e42d0
|
Documentation fix for Do()
|
2015-12-07 13:55:59 +02:00 |
|
Aliaksandr Valialkin
|
a3044a5fd8
|
Increased small file size threshold in FSHandler - 4-8Kb files are served faster with smallFileReader
|
2015-12-07 13:55:09 +02:00 |
|
Aliaksandr Valialkin
|
6794c894d9
|
Properly handle 'big file handler cannot be opened' error
|
2015-12-07 12:20:26 +02:00 |
|
Aliaksandr Valialkin
|
53d602ef50
|
Do not take into account data buffered in bufio.Writer when calculating the amount of data sent to the writer
|
2015-12-07 12:13:19 +02:00 |
|
Aliaksandr Valialkin
|
a2ad246047
|
Fixed a typo
|
2015-12-07 12:10:22 +02:00 |
|
Aliaksandr Valialkin
|
778f4a1054
|
An attempt to trigger sendfile path in FSHandler when sending big files
|
2015-12-07 12:06:39 +02:00 |
|
Aliaksandr Valialkin
|
464f61fb44
|
FSHandler index page: fixed urls to files
|
2015-12-07 09:58:01 +02:00 |
|
Aliaksandr Valialkin
|
b6349bb92a
|
FSHandler index page: do not wrap file info into a link
|
2015-12-07 09:54:13 +02:00 |
|
Aliaksandr Valialkin
|
94b8ba2134
|
FSHandler index page prettifying: added last modification dates, file sizes and directory flags
|
2015-12-07 09:52:10 +02:00 |
|
Aliaksandr Valialkin
|
330f5581d1
|
Attempt #2 to add WriteTo to fsFileReader
|
2015-12-07 09:36:18 +02:00 |
|
Aliaksandr Valialkin
|
ad0de104c0
|
Use New() function in copyBufPool
|
2015-12-07 09:33:08 +02:00 |
|
Aliaksandr Valialkin
|
6e73ab1b49
|
Verify index page generation in FSHandler
|
2015-12-07 09:13:54 +02:00 |
|
Aliaksandr Valialkin
|
60929d176f
|
Code prettifying in fsFileReader.Read
|
2015-12-07 09:11:54 +02:00 |
|
Aliaksandr Valialkin
|
9441c5f5e3
|
Do not wrap reader into io.LimitedReader in writeBodyFixedSize - if the reader will return more than the expected bytes, then the error will be returned. This allows io.CopyBuffer() exploiting io.WriterTo interface on the reader, which may result in improved speed for optimized readers
|
2015-12-07 09:10:48 +02:00 |
|
Aliaksandr Valialkin
|
a7e597579f
|
Revert "FSHandler optimization: added WriteTo to fsFileReader. This should speed up io.Copy() from fsFileReader"
This reverts commit 0979f22779.
|
2015-12-06 20:46:20 +02:00 |
|
Aliaksandr Valialkin
|
0e8987247d
|
Revert "Properly implement fsFileReader.WriteTo for file handlers"
This reverts commit 66029e50a6.
|
2015-12-06 20:46:18 +02:00 |
|
Aliaksandr Valialkin
|
40921cb7cf
|
Revert "typo fix"
This reverts commit a64d05fc04.
|
2015-12-06 20:46:11 +02:00 |
|
Aliaksandr Valialkin
|
a64d05fc04
|
typo fix
|
2015-12-06 20:43:36 +02:00 |
|
Aliaksandr Valialkin
|
66029e50a6
|
Properly implement fsFileReader.WriteTo for file handlers
|
2015-12-06 20:42:43 +02:00 |
|
Aliaksandr Valialkin
|
0979f22779
|
FSHandler optimization: added WriteTo to fsFileReader. This should speed up io.Copy() from fsFileReader
|
2015-12-06 20:20:46 +02:00 |
|
Aliaksandr Valialkin
|
bb1df8cf70
|
Get updated fasthttp when building fileserver with make
|
2015-12-06 19:52:44 +02:00 |
|
Aliaksandr Valialkin
|
16828fc733
|
Prevent possible file handler leak in FSHandler
|
2015-12-06 19:52:03 +02:00 |
|