Skip to content

Commit

Permalink
feat: Make RestRequest session public (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Lees11 authored Jul 3, 2019
1 parent cce2524 commit e3b3d1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/SwiftyRequest/RestRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ public class RestRequest: NSObject {
// The client certificate for 2-way SSL
private let clientCertificate: ClientCertificate?

/// A default `URLSession` instance.
/// The `URLSession` instance that will be used to send the requests. Defaults to `URLSession.shared`.
#if swift(>=4.1)
private var session: URLSession = URLSession.shared
public var session: URLSession = URLSession.shared
#else
private var session: URLSession = URLSession(configuration: URLSessionConfiguration.default)
public var session: URLSession = URLSession(configuration: URLSessionConfiguration.default)
#endif

// The HTTP Request
Expand Down

0 comments on commit e3b3d1e

Please sign in to comment.