File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ This package uses stand alone package providing retry policy. The service create
122122
123123## Validate
124124Is an array of different rules to check Data or URLResponse.
125- Currently is implemented for status code. You can pass to the validate array different combinations to validate like for status code 200 and 202..<205
125+ Currently is implemented for validating status code.
126126
127127### Status code
128128| type | description |
@@ -133,14 +133,11 @@ Currently is implemented for status code. You can pass to the validate array dif
133133
134134#### By range
135135``` swift
136-
137136 try await http.get (path : path, validate : [.status (.range (200 ..< 300 ))])
138-
139137```
140138
141139#### By predicate
142140``` swift
143-
144141 let fn : (Int ) -> Bool = { status in status == 201 }
145142
146143 try await http.get (path : path, validate : [.status (.predicate (fn))])
You can’t perform that action at this time.
0 commit comments