mirror of
https://github.com/apple/swift-nio
synced 2026-11-29 05:24:21 +00:00
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:
1 parent
4a09182a39
commit
ca6b0ff28d
4 files changed
+50
-2
No files matched your search
@@ -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<()>?)
|
||||
|
||||
Reference in new issue
Block a user