Created
July 14, 2020 17:02
-
-
Save stevencurtis/f5f128011cefb3b8dd2627d8ded01427 to your computer and use it in GitHub Desktop.
httpmanagerprotocol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol HTTPManagerProtocol { | |
associatedtype aType | |
var session: aType { get } | |
init(session: aType) | |
func post<T: Decodable>( | |
url: URL, | |
headers: [String : String], | |
data: Data | |
) | |
-> AnyPublisher<T, Error> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment