File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Sources/OpenAPIURLSession
Tests/OpenAPIURLSessionTests Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,10 @@ public struct URLSessionTransport: ClientTransport {
7474 let implementation = httpBodyProcessingMode. implementation
7575 self . init ( session: session, implementation: implementation)
7676 }
77+ /// Creates a new configuration with the provided session.
78+ /// - Parameter session: The URLSession used for performing HTTP operations.
79+ public init ( session: URLSession ) { self . init ( session: session, implementation: . platformDefault) }
7780 /// Specifies the mode in which HTTP request and response bodies are processed.
78-
7981 public struct HTTPBodyProcessingMode : Sendable {
8082 /// Exposing the internal implementation directly.
8183 fileprivate let implementation : Configuration . Implementation
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import HTTPTypes
1818import NIO
1919import OpenAPIRuntime
2020import XCTest
21+ import NIOHTTP1
2122@testable import OpenAPIURLSession
2223
2324enum CancellationPoint : CaseIterable {
You can’t perform that action at this time.
0 commit comments