Make HTTPField.Name.init(parsed:) @inlinable (#154)

This commit is contained in:
Fabian Fett authored and GitHub committed 2026-09-04 11:27:11 +02:00
1 parent 034320a9ff
commit 46573d5db7
1 file changed
+1
+1
View File
@@ -60,6 +60,7 @@ extension HTTPField {
/// - Parameter name: The name of the HTTP field or the HTTP pseudo header field. It must
/// be lowercased.
@available(HTTPTypes 1.2, *)
@inlinable
public init?(parsed name: String) {
let token: Substring
if name.utf8.first == UInt8(ascii: ":") {