crayon icon indicating copy to clipboard operation
crayon copied to clipboard

Http library's request.setMode() is kind of an awkward API design

Open blakeohare opened this issue 5 years ago • 1 comments

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.

blakeohare avatar May 04 '19 20:05 blakeohare

Speaking of which, there doesn't seem to be quick getters for common response headers, such as Content-Type.

blakeohare avatar May 04 '19 20:05 blakeohare