Type Aliases
The following type aliases are available globally.
-
Typealias for Output that is emitted by the
DataTaskPublisherDeclaration
Swift
public typealias HTTPResponse = (data: Data, response: HTTPURLResponse, status: HTTPStatusCode) -
RedirectHandlerAsynchronousURLRequest redirect handler as described in URLSessionTaskDelegate
Declaration
Swift
public typealias RedirectHandler = ( _ original: HTTPURLResponse, _ redirect: URLRequest ) async -> URLRequest?Parameters
originalthe original response with a redirect status
redirectthe pre-composed URLRequest that follows the redirect
completionHandlerthe function that takes the newRequest to follow or nil to not follow the redirect
View on GitHub
Type Aliases Reference