Skip to content

How to know the type of response body? #2420

Discussion options

You must be logged in to vote

http turns everything into bytes. There is no notion of "preserving types across http". There is just serializing and deserializing bytes.

You have to say more about the specific error you got. Did you mean to serialize using serde_json?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Gumichocopengin8
Comment options

@davidpdrsn
Comment options

Answer selected by Gumichocopengin8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants