@@ -95,7 +95,7 @@ public extension Http{
9595 query : Query ? = nil ,
9696 headers : Headers ? = nil ,
9797 retry : UInt = 1 ,
98- validate : [ Http . Validate ] = [ . status( . const( 200 ) ) ] ,
98+ validate : [ Http . Validate ] = [ . status( . const( ) ) ] , /// default 200
9999 taskDelegate: ITaskDelegate ? = nil
100100 ) async throws
101101 -> Http . Response < T > where T: Decodable
@@ -125,7 +125,7 @@ public extension Http{
125125 query : Query ? = nil ,
126126 headers : Headers ? = nil ,
127127 retry : UInt = 1 ,
128- validate : [ Http . Validate ] = [ . status( . const( 200 ) ) ] ,
128+ validate : [ Http . Validate ] = [ . status( . const( ) ) ] , /// default 200
129129 taskDelegate: ITaskDelegate ? = nil
130130 ) async throws
131131 -> Http . Response < T > where T: Decodable
@@ -157,7 +157,7 @@ public extension Http{
157157 query : Query ? = nil ,
158158 headers : Headers ? = nil ,
159159 retry : UInt = 1 ,
160- validate : [ Http . Validate ] = [ . status( . range ( 200 ..< 300 ) ) ] ,
160+ validate : [ Http . Validate ] = [ . status( . const ( ) ) ] , /// default 200
161161 taskDelegate: ITaskDelegate ? = nil
162162 ) async throws
163163 -> Http . Response < T > where T: Decodable
@@ -178,7 +178,7 @@ public extension Http{
178178 public func send< T> (
179179 with request : URLRequest ,
180180 retry strategy : RetryService . Strategy = . exponential( ) ,
181- _ validate : [ Http . Validate ] = [ . status( . const( 200 ) ) ] ,
181+ _ validate : [ Http . Validate ] = [ . status( . const( ) ) ] , /// default 200
182182 _ taskDelegate: ITaskDelegate ? = nil
183183 ) async throws -> Http . Response < T > where T : Decodable
184184 {
0 commit comments