2020-07-30 01:50:30 +02:00
|
|
|
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2020-08-31 12:21:01 +02:00
|
|
|
public extension URLSessionConfiguration {
|
2020-07-30 01:50:30 +02:00
|
|
|
static var stubbing: URLSessionConfiguration {
|
|
|
|
let configuration = Self.default
|
|
|
|
|
|
|
|
configuration.protocolClasses = [StubbingURLProtocol.self]
|
|
|
|
|
|
|
|
return configuration
|
|
|
|
}
|
|
|
|
}
|