Johannes Weiss
734904d0f4
clean up the (proto)types for EventLoopFuture
...
* clean up the (proto)types for EventLoopFuture
* Remove more unnecessary parens
2018-02-09 16:03:28 +00:00
Johannes Weiss
755ea5aedc
non-blocking file IO
2018-02-07 17:25:45 +00:00
Johannes Weiss
eab7d314f3
make Channel non optional in ChannelHandlerContext
2018-01-30 12:03:51 +00:00
Johannes Weiß
c79c5ba364
re-export Darwin/Glibc and reduce number of #if os(...)
2018-01-09 15:08:17 +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ß
eaf658691c
some grammar fixes
2017-12-19 15:23:26 +00:00
Cory Benfield
3614d09a4b
Provide a nicer setup helper for HTTP connections
2017-12-13 15:38:40 +00:00
Johannes Weiß
33fe401322
rename Future/Promise to EventLoopFuture/EventLoopPromise
2017-11-21 17:41:36 +00:00
Johannes Weiß
f79aa7ef20
fix integration tests for Linux
2017-11-21 13:30:31 +00:00
Johannes Weiß
202e1c37d7
port integration tests for HTTP server
2017-10-10 19:41:01 +01: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
Daniel Dunbar
87a47c88fc
Prefer let bindings in port binding parsing.
2017-10-27 23:49:33 -07:00
Johannes Weiss
3bef8a4012
turn import Foundation comments into code :)
2017-10-12 16:33:50 +01:00
Cory Benfield
1f52bac1f9
Add support for HTTP trailers
2017-10-04 13:49:03 +01:00
Johannes Weiss
1adb581f59
remove more Foundation imports
2017-10-10 16:25:43 +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
Johannes Weiß
8e06697362
fix EventLoop shutdown by introducing shutdownGracefully
2017-09-20 17:15:06 +01:00
Cory Benfield
007feec636
Add Unix domain socket support part 2: Electric Boogaloo
...
* support UNIX Domain Sockets
* Add test for connect: with UDS path
* Add UDS-special connect method
2017-09-21 15:26:37 +01:00
Norman Maurer
1c469541a9
Force unwrap localAddress() as this should never be nil here and so fix the compiler warnings
2017-08-11 20:37:43 +02:00
Norman Maurer
16e0ffd9bf
Allow to obtain remote and local address
2017-08-08 15:43:47 +02:00
Johannes Weiß
55bed8359b
IPv6 support
2017-07-25 16:55:27 +01:00
Kevin Clark
ed98bffe28
Renames and cleanup
...
* Massage HTTPHeaders
Simple had it's own version that was the same aside from a couple of
minor tweaks.
* Default initializer for HTTPHeaders
* Rename HTTPRequest -> HTTPRequestPart
* HTTPResponse -> HTTPResponsePart
* Add HTTPVersion(major:,minor:)
* Allow access to HTTPVersion.major/minor
* Comments on HTTP response codes
* Fix tests (needed rename applied)
2017-07-18 10:38:23 -07:00
Johannes Weiß
06ff146839
fix missing autoreleasepool & faster string -> bytes
2017-07-17 17:57:15 +01:00
Norman Maurer
7b2af6a03e
Allow to pass the port as argument when starting the servers
2017-07-17 09:58:33 +02:00
Johannes Weiß
c09178ceb2
baby steps towards a type-safe Channel pipeline
2017-06-30 13:04:19 +01:00
Johannes Weiss
2fa81c9df4
make ByteBuffer allocation non-throwing (no reason it threw)
2017-06-29 15:38:02 +01:00
Johannes Weiß
cc9ecf2071
HTTP tests & fixes
2017-06-29 12:20:52 +01:00