File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
shared/src/commonMain/kotlin/dev/suresh/http Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,10 @@ expect fun httpClient(
115
115
116
116
expectSuccess = true
117
117
118
+ // install(SaveBodyPlugin) {
119
+ // disabled = true
120
+ // }
121
+
118
122
HttpResponseValidator {
119
123
handleResponseExceptionWithRequest { ex, req ->
120
124
val resException = ex as ? ResponseException ? : return @handleResponseExceptionWithRequest
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ data class MediaApiClient(
60
60
61
61
suspend fun images () = client.get(ImgRes ()).body<List <Image >>()
62
62
63
- suspend fun videos () = client.get(VideoRes ()).body<List <Video >>()
63
+ suspend fun videos () = client.get(VideoRes ()) { skipSavingBody() } .body<List <Video >>()
64
64
65
65
suspend fun multiPart () {
66
66
val multipart = client.post(MultiPartRes ()).body<MultiPartData >()
You can’t perform that action at this time.
0 commit comments