mirror of
https://github.com/apple/swift-http-types
synced 2026-11-22 04:30:40 +00:00
Make HTTPField.Name.init(parsed:) @inlinable (#154)
This commit is contained in:
1 parent
034320a9ff
commit
46573d5db7
1 file changed
+1
@@ -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: ":") {
|
||||
|
||||
Reference in new issue
Block a user