@@ -47,7 +47,9 @@ extension Http.Validate.Status: ExpressibleByIntegerLiteral {
4747public extension Http . Validate . Status {
4848
4949 /// Validate status
50- /// - Parameter data: URLResponse
50+ /// - Parameters:
51+ /// - response: URLResponse
52+ /// - data: Received data
5153 func validate( _ response : URLResponse , with data : Data ? ) throws {
5254
5355 guard let status = ( response as? HTTPURLResponse ) ? . statusCode else { return try err ( nil , response, with: data) }
@@ -72,8 +74,9 @@ public extension Http.Validate.Status{
7274/// Validate status
7375/// - Parameters:
7476/// - response: URLResponse
75- /// - validate: Set of func to validate status code
76- /// - Throws: Http.Errors.status(response)
77+ /// - rules: A rule for validating ``Http.Validate.Status``
78+ /// - data: Received data
79+ /// - Throws: ``Http.Errors.status``
7780@available ( iOS 15 . 0 , macOS 12 . 0 , tvOS 15 . 0 , watchOS 8 . 0 , * )
7881public func validateStatus(
7982 _ response : URLResponse ,
@@ -84,11 +87,13 @@ public func validateStatus(
8487}
8588
8689
90+
8791/// Validate status
8892/// - Parameters:
8993/// - response: URLResponse
90- /// - validate: Set of func to validate status code
91- /// - Throws: Http.Errors.status(response)
94+ /// - rules: rules for validating ``Http.Validate.Status``
95+ /// - data: Received data
96+ /// - Throws: ``Http.Errors.status``
9297@available ( iOS 15 . 0 , macOS 12 . 0 , tvOS 15 . 0 , watchOS 8 . 0 , * )
9398public func validateStatus(
9499 _ response : URLResponse ,
0 commit comments