问题
From the documentation, The TypedInput and TypedOutput classes exist only to bind a mime type to data. When we have to use the TypedInput in the Request. ?? Why we need this mapping while making the Request
回答1:
If you have consistent MIME type for all requests then you shouldn't bother about the TypedInput or TypedOutput. Let's say if you have JSON in and out for your request you should not consider using these. But if you have mixed requests, let's say byte stream, JSON and XML you should provide your own Converter and mapping for different requests.
来源:https://stackoverflow.com/questions/31377633/retrofit-and-typedinput