Johannes Weiss
d2b671da66
make HTTPServerClientTests more robust
2018-01-05 15:19:22 +00:00
Norman Maurer
8f1ad37edd
Use camel case for ChannelOption factory values and add docs
2017-12-20 14:18:07 +01:00
Johannes Weiss
dfd25bf576
refactor Channel initialisation & *Bootstrap docs
2017-12-13 15:42:54 +00:00
Johannes Weiß
d7d1d5dbf5
fixed a near miss (thanks Swift 4.1 compiler warning)
2017-12-18 15:57:31 +00:00
Johannes Weiß
94e1af5452
compile warning-free on Swift 4.1
2017-12-18 15:37:57 +00:00
Norman Maurer
76482816e6
Prefix all ByteBuffer methods with get if these allow access to unitialized memory.
2017-12-15 12:24:09 +01:00
Cory Benfield
3614d09a4b
Provide a nicer setup helper for HTTP connections
2017-12-13 15:38:40 +00:00
Cory Benfield
4154a3bcbc
Don't shut connections aggressively in tests
2017-12-15 10:41:46 +00:00
Cory Benfield
be3d8d00f8
Correctly decode HTTP HEAD responses
2017-12-13 17:10:44 +00:00
Johannes Weiß
06f9b1d63b
merge ConcurrencyHelpers
2017-11-21 18:32:33 +00:00
Johannes Weiß
33fe401322
rename Future/Promise to EventLoopFuture/EventLoopPromise
2017-11-21 17:41:36 +00:00
Johannes Weiß
31cd14eaad
fix inEventLoop race and makes TSan happy
2017-11-10 14:56:33 -08:00
Norman Maurer
976f4752df
Add HTTPRequestEncoder / HTTPResponseDecoder implementation and tests
2017-11-02 13:50:46 +01:00
Norman Maurer
c22e5ead6b
Remove ByteBufferAllocator constructor argument from HttpResponseEncoder
...
Motivation:
We can allocate the buffer on the fly if needed, no need to add the constructor argument.
Modifications:
Just allocate the buffer in the methods itself that need it.
Result:
Easier to construct encoder and cleaner code.
2017-11-02 12:56:00 +01:00
Norman Maurer
22a35b2bdb
Add FileRegion support when using HTTP
...
Motivation:
Often people want to transfer large files over http which should be done using sendfile(...) for best performance.
Modifications:
- Add support for using FileRegion when sending body parts.
- Add tests
Result:
Be able to serve files without loading these into memory
2017-11-01 16:02:14 +01:00
Johannes Weiß
6173bee782
Split IOData into NIOAny & IOData (ByteBuffer | FileRegion)
2017-10-25 19:31:27 +01:00
Cory Benfield
b2cbe766f0
Add support for HTTP Upgrade
2017-10-12 17:24:00 -07:00
Johannes Weiss
2889c7e3de
fix buffer confusion on incomplete writes
2017-10-17 16:51:15 +01:00
Cory Benfield
1f52bac1f9
Add support for HTTP trailers
2017-10-04 13:49:03 +01:00
Johannes Weiss
0b265368a1
use the new Swift 4 String APIs for encoding/decoding Strings
2017-10-10 17:12:02 +01:00
Johannes Weiss
1adb581f59
remove more Foundation imports
2017-10-10 16:25:43 +01:00
Johannes Weiss
b735ddf306
HTTPServerClientTest: depend on channelReadComplete working
2017-09-29 14:58:33 +01:00
Johannes Weiss
a73d46f218
HTTP/1.1 Chunked Encoding
...
* HTTP/1.1 Chunked Encoding
* fix MarkedCircularBuffer: if not marked do not try to move mark when removing first
* fix HTTPRequestDecoder: dispatch callouts after parsing is complete
* fix HTTPTest: feed pipeline the inbound data correctly
2017-09-25 15:33:02 +01:00