crayon
crayon copied to clipboard
Http library's request.setMode() is kind of an awkward API design
Just get the response as a byte array internally and then have a string/bytes getters that the user can decide to call based on the response Content-Type.
Speaking of which, there doesn't seem to be quick getters for common response headers, such as Content-Type.