replace Foundation whitespace trimming

Motivation:

For HTTP parsing, we used Foundation to trim whitespace which is not
needed.

Modifications:

Implemented whitespace trimming in Swift.

Result:

less Foundation
This commit is contained in:
Johannes Weiss committed 2018-02-19 12:55:29 +00:00
1 parent 4a09182a39
commit ca6b0ff28d
4 files changed
+50 -2

No files matched your search

-1
View File
@@ -13,7 +13,6 @@
//===----------------------------------------------------------------------===//
import NIO
import class Foundation.NSNull // dummy import to get Foundation to link
private func writeChunk(wrapOutboundOut: (IOData) -> NIOAny, ctx: ChannelHandlerContext, isChunked: Bool, chunk: IOData, promise: EventLoopPromise<Void>?) {
let (mW1, mW2, mW3): (EventLoopPromise<()>?, EventLoopPromise<()>?, EventLoopPromise<()>?)