@@ -16,7 +16,7 @@ public protocol HttpCodablePipelineCollection {
16
16
/// - Returns: The generic request encoder instance
17
17
///
18
18
func encoder< T: Encodable > ( ) -> HttpRequestEncoder < T >
19
-
19
+
20
20
///
21
21
/// The generic decoder object used to decode response data
22
22
///
@@ -25,25 +25,25 @@ public protocol HttpCodablePipelineCollection {
25
25
func decoder< T: Decodable > ( ) -> HttpResponseDecoder < T >
26
26
}
27
27
28
- public extension HttpCodablePipelineCollection {
28
+ extension HttpCodablePipelineCollection {
29
29
30
30
///
31
31
/// The generic encoder object used to encode body values
32
32
///
33
33
/// - Returns: The default json encoder
34
34
///
35
- func encoder< T: Encodable > ( ) -> HttpRequestEncoder < T > { . json( ) }
36
-
35
+ public func encoder< T: Encodable > ( ) -> HttpRequestEncoder < T > { . json( ) }
36
+
37
37
///
38
38
/// The generic decoder object used to decode response data
39
39
///
40
40
/// - Returns: The default json decoder
41
41
///
42
- func decoder< T: Decodable > ( ) -> HttpResponseDecoder < T > { . json( ) }
42
+ public func decoder< T: Decodable > ( ) -> HttpResponseDecoder < T > { . json( ) }
43
43
}
44
44
45
- public extension HttpCodablePipelineCollection {
46
-
45
+ extension HttpCodablePipelineCollection {
46
+
47
47
///
48
48
/// Executes a raw request pipeline using a data values as a body and returns the response
49
49
///
@@ -58,7 +58,7 @@ public extension HttpCodablePipelineCollection {
58
58
///
59
59
/// - Returns: The HTTP response object
60
60
///
61
- func rawRequest(
61
+ public func rawRequest(
62
62
executor: ( ( HttpRequest ) async throws -> HttpResponse ) ,
63
63
url: HttpUrl ,
64
64
method: HttpMethod ,
@@ -75,7 +75,7 @@ public extension HttpCodablePipelineCollection {
75
75
)
76
76
return try await pipeline. execute ( executor)
77
77
}
78
-
78
+
79
79
///
80
80
/// Executes an encodable request pipeline using an encodable object as a body value and returns the response
81
81
///
@@ -90,7 +90,7 @@ public extension HttpCodablePipelineCollection {
90
90
///
91
91
/// - Returns: The HTTP response object
92
92
///
93
- func encodableRequest< T: Encodable > (
93
+ public func encodableRequest< T: Encodable > (
94
94
executor: ( ( HttpRequest ) async throws -> HttpResponse ) ,
95
95
url: HttpUrl ,
96
96
method: HttpMethod ,
@@ -108,7 +108,7 @@ public extension HttpCodablePipelineCollection {
108
108
)
109
109
return try await pipeline. execute ( executor)
110
110
}
111
-
111
+
112
112
///
113
113
/// Executes a raw request pipeline using a data values as a body and returns the response
114
114
///
@@ -123,7 +123,7 @@ public extension HttpCodablePipelineCollection {
123
123
///
124
124
/// - Returns: The decoded response object
125
125
///
126
- func decodableRequest< U: Decodable > (
126
+ public func decodableRequest< U: Decodable > (
127
127
executor: ( ( HttpRequest ) async throws -> HttpResponse ) ,
128
128
url: HttpUrl ,
129
129
method: HttpMethod ,
@@ -141,7 +141,7 @@ public extension HttpCodablePipelineCollection {
141
141
)
142
142
return try await pipeline. execute ( executor)
143
143
}
144
-
144
+
145
145
///
146
146
/// Executes a codable request pipeline using an encodable body and decodes the response
147
147
///
@@ -156,7 +156,7 @@ public extension HttpCodablePipelineCollection {
156
156
///
157
157
/// - Returns: The decoded response object
158
158
///
159
- func codableRequest< T: Encodable , U: Decodable > (
159
+ public func codableRequest< T: Encodable , U: Decodable > (
160
160
executor: ( ( HttpRequest ) async throws -> HttpResponse ) ,
161
161
url: HttpUrl ,
162
162
method: HttpMethod ,
0 commit comments