Currently there are two ways to download content, either with makeImageRequest
to download images or makeWebRequest
that can set the accept header to any of HttpResponseContentType
which does not include image/*.
It's not uncommon to have APIs where you make a HTTP POST request to generate an image such as a QR code which aloso takes a payload.
It would be great if either makeImageRequest
could accept HTTP method POST and a payload or if makeWebRequest
could accept image content in the response, preferable the first alternative to support scaling and dithering etc.