metatext/HTTP/Sources/Stubbing/URLSessionConfiguration+Extensions.swift

14 lines
315 B
Swift
Raw Normal View History

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