Skip to content
Snippets Groups Projects
Commit dd71a253 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Improve optional data types

parent 0e909c66
Branches
No related tags found
No related merge requests found
...@@ -12,13 +12,14 @@ import Logging ...@@ -12,13 +12,14 @@ import Logging
public protocol HttpResponseFilter public protocol HttpResponseFilter
{ {
@available(iOS 15.0.0, *) @available(iOS 15.0.0, *)
func handleResponse(request: Request, data: Data?, dataMapper: DataMapper?, sender: Any?) async throws -> Any func handleResponse(request: Request, data: Data, dataMapper: DataMapper?, sender: Any?) async throws -> Any
} }
public protocol HttpSuccessFilter public protocol HttpSuccessFilter
{ {
@available(iOS 15.0.0, *) @available(iOS 15.0.0, *)
func handleResponse(data: Data?, response: HTTPURLResponse, dataMapper: DataMapper?, sender: Any?) async throws -> Any
func handleResponse(data: Data, response: HTTPURLResponse, dataMapper: DataMapper?, sender: Any?) async throws -> Any
} }
public protocol DataManagerDelegate public protocol DataManagerDelegate
......
...@@ -11,5 +11,5 @@ import Foundation ...@@ -11,5 +11,5 @@ import Foundation
public protocol DataMapper public protocol DataMapper
{ {
@available(iOS 15.0.0, *) @available(iOS 15.0.0, *)
func mapData(data: Data?, response: URLResponse?, sender: Any?) async throws -> Any func mapData(data: Data, response: HTTPURLResponse, sender: Any?) async throws -> Any
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment