File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Sources/OpenAPIURLSession Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ public struct URLSessionTransport: ClientTransport {
71
71
/// If none is provided, the system uses the shared URLSession.
72
72
public init ( session: URLSession = . shared) { self . init ( session: session, implementation: . platformDefault) }
73
73
74
- enum Implementation {
74
+ public enum Implementation : Sendable {
75
75
case buffering
76
76
case streaming( requestBodyStreamBufferSize: Int , responseBodyStreamWatermarks: ( low: Int , high: Int ) )
77
77
}
78
78
79
- var implementation : Implementation
79
+ public var implementation : Implementation
80
80
81
- init ( session: URLSession = . shared, implementation: Implementation = . platformDefault) {
81
+ public init ( session: URLSession = . shared, implementation: Implementation = . platformDefault) {
82
82
self . session = session
83
83
if case . streaming = implementation {
84
84
precondition ( Implementation . platformSupportsStreaming, " Streaming not supported on platform " )
@@ -352,7 +352,7 @@ extension URLSessionTransport.Configuration.Implementation {
352
352
#endif
353
353
}
354
354
355
- static var platformDefault : Self {
355
+ public static var platformDefault : Self {
356
356
guard platformSupportsStreaming else { return . buffering }
357
357
return . streaming(
358
358
requestBodyStreamBufferSize: 16 * 1024 ,
You can’t perform that action at this time.
0 commit comments