Skip to content

Commit 77b3947

Browse files
committed
Update README.md
1 parent 156bb8d commit 77b3947

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ This package uses stand alone package providing retry policy. The service create
122122

123123
## Validate
124124
Is 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))])

0 commit comments

Comments
 (0)