File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Sources/OpenAPIURLSession Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public struct URLSessionTransport: ClientTransport {
7575 self . init ( session: session, implementation: implementation)
7676 }
7777 /// Specifies the mode in which HTTP request and response bodies are processed.
78-
78+
7979 public struct HTTPBodyProcessingMode : Sendable {
8080 /// Exposing the internal implementation directly.
8181 fileprivate let implementation : Configuration . Implementation
@@ -95,7 +95,6 @@ public struct URLSessionTransport: ClientTransport {
9595 }
9696
9797 var implementation : Implementation
98-
9998 init ( session: URLSession = . shared, implementation: Implementation = . platformDefault) {
10099 self . session = session
101100 if case . streaming = implementation {
@@ -111,7 +110,9 @@ public struct URLSessionTransport: ClientTransport {
111110
112111 /// Creates a new URLSession-based transport.
113112 /// - Parameter configuration: A set of configuration values used by the transport.
114- public init ( configuration: Configuration = . init( httpBodyProcessingMode: . platformDefault) ) { self . configuration = configuration }
113+ public init ( configuration: Configuration = . init( httpBodyProcessingMode: . platformDefault) ) {
114+ self . configuration = configuration
115+ }
115116
116117 /// Sends the underlying HTTP request and returns the received HTTP response.
117118 /// - Parameters:
You can’t perform that action at this time.
0 commit comments