Skip to content

Why so many body types? #192

Answered by fakeshadow
khvzak asked this question in Q&A
Mar 24, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

As for Payload type the benefit of separating request/response body type is mainly you can relax the Unpin bound. From server's view request body type can be always Unpin while response body type can be !Unpin for special body use. This is not something often used but it leaves the possibility open. From client's view this still holds in reverse order.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@khvzak
Comment options

Answer selected by khvzak
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