mirror of
https://github.com/apple/swift-http-types
synced 2026-11-28 05:14:20 +00:00
Update comment
This commit is contained in:
1 parent
20d5ed91ae
commit
c8357002a1
1 file changed
+2
-1
@@ -71,7 +71,8 @@ public struct HTTPField: Sendable, Hashable {
|
||||
/// Create an HTTP field from a name and a value. Leniently legalize the value.
|
||||
/// - Parameters:
|
||||
/// - name: The HTTP field name.
|
||||
/// - value: The HTTP field value. Newlines and NULs are converted into space characters.
|
||||
/// - lenientValue: The HTTP field value. Newlines and NULs are converted into space
|
||||
/// characters.
|
||||
public init(name: Name, lenientValue: some Collection<UInt8>) {
|
||||
self.name = name
|
||||
self.rawValue = Self.lenientLegalizeValue(ISOLatin1String(lenientValue))
|
||||
|
||||
Reference in new issue
Block a user