Skip to content

Commit 57dfdeb

Browse files
committed
improving comments
1 parent 2f280f0 commit 57dfdeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/OpenAPIURLSession/URLSessionTransport.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,15 @@ public struct URLSessionTransport: ClientTransport {
6969
/// Creates a new configuration with the provided session.
7070
/// - Parameters:
7171
/// - session: The URLSession used for performing HTTP operations.
72+
/// If none is provided, the system uses the shared URLSession.
7273
/// - httpBodyProcessingMode: The mode used to process HTTP request and response bodies.
7374
public init(session: URLSession = .shared, httpBodyProcessingMode: HTTPBodyProcessingMode = .platformDefault) {
7475
let implementation = httpBodyProcessingMode.implementation
7576
self.init(session: session, implementation: implementation)
7677
}
7778
/// Creates a new configuration with the provided session.
7879
/// - Parameter session: The URLSession used for performing HTTP operations.
80+
/// If none is provided, the system uses the shared URLSession.
7981
public init(session: URLSession) { self.init(session: session, implementation: .platformDefault) }
8082
/// Specifies the mode in which HTTP request and response bodies are processed.
8183
public struct HTTPBodyProcessingMode: Sendable {

0 commit comments

Comments
 (0)