mirror of
https://github.com/apple/swift-nio
synced 2026-11-29 05:24:21 +00:00
HTTPDecoder: remove rawURI (#899)
Motivation: Before native UTF-8, the rawURI was a performance optimisation but that's no longer true. Before this patch, we still had the rawURIs but weren't using them at all. Modifications: remove any mention of rawURI Result: less clutter
This commit is contained in:
1 parent
b126287b78
commit
ae3459aebf
2 files changed
+20
-46
No files matched your search
@@ -530,7 +530,7 @@ public class HTTPDecoder<In, Out>: ByteToMessageDecoder, HTTPDecoderDelegate {
|
||||
case .request:
|
||||
let reqHead = HTTPRequestHead(version: .init(major: versionMajor, minor: versionMinor),
|
||||
method: HTTPMethod.from(httpParserMethod: method),
|
||||
rawURI: .string(self.url!),
|
||||
uri: self.url!,
|
||||
headers: HTTPHeaders(self.headers,
|
||||
keepAliveState: keepAliveState))
|
||||
message = NIOAny(HTTPServerRequestPart.head(reqHead))
|
||||
|
||||
Reference in new issue
Block a user