Range
extension Range where Bound == HTTPStatusCode
-
Checks if a value is within a range of HTTP status codes.
Declaration
Swift
public static func ~= (range: Range<HTTPStatusCode>, value: Int) -> Bool
Parameters
range
The range of HTTP status codes to check against.
value
The value to check against the range.
Return Value
true
if the value is within the range, otherwisefalse
.