Skip to content

Commit

Permalink
0.41.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Mar 10, 2024
1 parent 14b7138 commit 7adbec3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ All built-in extensions utilize these modifiers.
## Built-in `APIClient` Extensions
### Request building
Numerous methods exist for modifying a `URLRequest` such as `query`, `body`, `header`, `headers`, `method`, `path`, `timeout`, `cachePolicy`, `body`, `bodyStream` and more.\
```swift
let client = APIClient(url: baseURL)
.method(.post)
.body(someEncodableBody)
.query(someEncodableQuery)
.header(.acceptEncoding, "UTF-8")
```
The full list of modifiers is available in [RequestModifiers.swift](/Sources/SwiftAPIClient/Modifiers/RequestModifiers.swift), all based on the `modifyRequest` modifier.

Notable non-obvious modifiers include:
Expand Down Expand Up @@ -232,7 +239,7 @@ import PackageDescription
let package = Package(
name: "SomeProject",
dependencies: [
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "0.40.0")
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "0.41.0")
],
targets: [
.target(
Expand Down

0 comments on commit 7adbec3

Please sign in to comment.