We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a2d7ad + 8d8a34a commit 89ab5a5Copy full SHA for 89ab5a5
1 file changed
Sources/APIKit/Request.swift
@@ -50,7 +50,7 @@ public protocol Request {
50
51
/// Intercepts response `Any` and `HTTPURLResponse`. If an error is thrown in this method,
52
/// the result of `Session.send()` turns `.failure(.responseError(error))`.
53
- /// The default implementation of this method is provided to throw `RequestError.unacceptableStatusCode`
+ /// The default implementation of this method is provided to throw `ResponseError.unacceptableStatusCode`
54
/// if the HTTP status code is not in `200..<300`.
55
/// - Throws: `Error`
56
func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any
0 commit comments