Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Foso committed May 26, 2024
1 parent 8516228 commit 36a6eb3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/converters/responseconverter.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ Ktorfit.Builder().converterFactories(FlowConverterFactory()).baseUrl("foo").buil

### Flow

Add this dependency:
```kotlin
implementation("de.jensklingenberg.ktorfit:ktorfit-converters-flow:$CONVERTER_VERSION")
```

Ktorfit has support for Kotlin Flow. You need add the FlowConverterFactory() to your Ktorfit instance.

```kotlin
Expand All @@ -98,6 +103,11 @@ Then you can drop the **suspend** modifier and wrap your return type with Flow<>

### Call

Add this dependency:
```kotlin
implementation("de.jensklingenberg.ktorfit:ktorfit-converters-call:$CONVERTER_VERSION")
```

```kotlin
ktorfit.converterFactories(CallConverterFactory())
```
Expand Down

0 comments on commit 36a6eb3

Please sign in to comment.