@@ -64,7 +64,7 @@ public extension HttpCodablePipelineCollection {
64
64
method: HttpMethod ,
65
65
headers: [ HttpHeaderKey : String ] = [ : ] ,
66
66
body: Data ? = nil ,
67
- validators: [ HttpResponseValidator ] = [ ]
67
+ validators: [ HttpResponseValidator ] = [ HttpStatusCodeValidator ( ) ]
68
68
) async throws -> HttpResponse {
69
69
let pipeline : HttpRawPipeline = . init(
70
70
url: url,
@@ -96,7 +96,7 @@ public extension HttpCodablePipelineCollection {
96
96
method: HttpMethod ,
97
97
headers: [ HttpHeaderKey : String ] = [ : ] ,
98
98
body: T ,
99
- validators: [ HttpResponseValidator ] = [ ]
99
+ validators: [ HttpResponseValidator ] = [ HttpStatusCodeValidator ( ) ]
100
100
) async throws -> HttpResponse {
101
101
let pipeline : HttpEncodablePipeline < T > = . init(
102
102
url: url,
@@ -129,7 +129,7 @@ public extension HttpCodablePipelineCollection {
129
129
method: HttpMethod ,
130
130
body: Data ? = nil ,
131
131
headers: [ HttpHeaderKey : String ] = [ : ] ,
132
- validators: [ HttpResponseValidator ] = [ ]
132
+ validators: [ HttpResponseValidator ] = [ HttpStatusCodeValidator ( ) ]
133
133
) async throws -> U {
134
134
let pipeline : HttpDecodablePipeline < U > = . init(
135
135
url: url,
@@ -162,7 +162,7 @@ public extension HttpCodablePipelineCollection {
162
162
method: HttpMethod ,
163
163
headers: [ HttpHeaderKey : String ] = [ : ] ,
164
164
body: T ,
165
- validators: [ HttpResponseValidator ] = [ ] ) async throws -> U {
165
+ validators: [ HttpResponseValidator ] = [ HttpStatusCodeValidator ( ) ] ) async throws -> U {
166
166
let pipeline : HttpCodablePipeline < T , U > = . init(
167
167
url: url,
168
168
method: method,
0 commit comments