Best Practices for Working with Stream Responses? #1525
Unanswered
chrstophr-wltrs
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a few endpoints that return
byte[]
, and I was wondering about best practices for working with those.Let's say I have some interface:
When I attempt to run tests with this client, I run into a few snags.
I can execute the request, but Refit (by default) tries to deserialize the response into JSON, which of course does not work.
Of course, I came across this older issue, but I wanted to see if this was still up to date.
What are the recommendations for telling Refit that the response body should not be parsed as JSON?
Beta Was this translation helpful? Give feedback.
All reactions