We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5068a6d commit 4099193Copy full SHA for 4099193
1 file changed
Sources/HTTPHeaders/HTTPHeader.swift
@@ -15,7 +15,7 @@ public struct HTTPHeader<T> {
15
16
public func parse(from response: HTTPURLResponse) throws -> T {
17
guard let value = response.value(forHTTPHeaderField: field) else {
18
- throw ParsingError.valueNotFound(field: field)
+ throw ParsingError.keyNotFound(field: field)
19
}
20
return try parse(value)
21
@@ -35,7 +35,7 @@ public struct HTTPHeader<T> {
35
36
37
public enum ParsingError: Error {
38
- case valueNotFound(field: String)
+ case keyNotFound(field: String)
39
case typeMismatch(field: String, value: String, type: Any.Type)
40
41
0 commit comments