Getting RawBody from HTTPResponse #538
hell-storm2004
started this conversation in
General
Replies: 1 comment 1 reply
-
|
It's a little weird because it's not always available. There are lots of kinds of response bodies, not always strings. Also Its a stream that gets consumed and you don't want to always just hold it in memory or else you can run in ooms. In any case there is a method called mapError that lets you try and get it. If you want the raw string you can |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to get the rawBody value from the HTTPResponse. Currently I have only
getBody()method which returns the value"error": "Internal server error!". But I need to get the value"\"error\": \"Internal server error!\"". Because the former String just doesn't parse into a JSON.But I need the value in the
rawBody.Beta Was this translation helpful? Give feedback.
All reactions