Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerman committed Jun 20, 2024
1 parent 6ce273a commit bd867d5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,25 @@ val api: MyApi[fs2.Stream[IO, *]] = client.wire[MyApi[fs2.Stream[IO, *]]]

```

### fetch (browser)

This is useful when running in the browser, because it will have a smaller bundle-size then using the http4s client.

Use with:
```
libraryDependencies += "com.github.cornerman" %%% "sloth-jsdom-client" % "0.7.3"
```

In the client:
```scala
import sloth.Client
import sloth.ext.jsdom.client.HttpRpcTransport

// for usual rpc
val client = Client[String, IO](HttpRpcTransport[IO])
val api: MyApi[IO] = client.wire[MyApi[IO]]
```

## Experimental: Checksum for Apis

Currently scala-2 only.
Expand Down

0 comments on commit bd867d5

Please sign in to comment.