Skip to content

Commit

Permalink
Open Request.perform
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Sacerdoti committed Apr 20, 2020
1 parent a32a235 commit 8513e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Requests/Request.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ open class Request: AbstractRequest {
/// - error: The task error.
/// - Throws: An error if either the `urlRequest` property was not properly initialised, or the `completionHandler`
/// throws.
public func perform(_ completionHandler: @escaping (_ result: Result<Response, Error>) throws -> Void) {
open func perform(_ completionHandler: @escaping (_ result: Result<Response, Error>) throws -> Void) {

let task = session.dataTask(with: urlRequest) { data, response, error in
if let error = error {
Expand All @@ -153,7 +153,7 @@ open class Request: AbstractRequest {
/// - completionHandler: An handler called upon completion.
/// - result: The response result.
/// - error: The task error.
public func perform<T: Decodable>(decoding object: T.Type,
open func perform<T: Decodable>(decoding object: T.Type,
_ completionHandler: @escaping (
_ result: Result<(T?, URLResponse?), Error>) throws -> Void) {

Expand Down

0 comments on commit 8513e31

Please sign in to comment.