Closed hannesa2 closed 1 year ago
Hey hannesa2,
Unfortunately not, however this would be a great addition, I will look at trying to support a response type binary.
It would be a really great addition ! Till now I've to use MultipartEntity for POST, but GET is more easier to request. For a first step I'm happy with GET binary type for not leaving mechanoid for this request
I've no idea how to expand DSL for the new response type, this is my blocking point to make a new pull request. At my point of view, the best response type is a stream, otherwise everything is in memory, and this can be very dangerous on large objects.
Rather than update the grammar you could make getInputStream() method public:
Then you can just read off the input stream instead of calling response.parse();
Is it possible to request binary data like