Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created July 14, 2020 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevencurtis/f5f128011cefb3b8dd2627d8ded01427 to your computer and use it in GitHub Desktop.
Save stevencurtis/f5f128011cefb3b8dd2627d8ded01427 to your computer and use it in GitHub Desktop.
httpmanagerprotocol
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