metatext/HTTP/Sources/Stubbing/URLSessionConfiguration+Extensions.swift
Justin Mazzocchi 5f96f59ac3
wip
2020-08-31 03:21:01 -07:00

13 lines
315 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
public extension URLSessionConfiguration {
static var stubbing: URLSessionConfiguration {
let configuration = Self.default
configuration.protocolClasses = [StubbingURLProtocol.self]
return configuration
}
}