29 Mar
2016
29 Mar
'16
4:49 p.m.
On Tue, Mar 29, 2016, at 12:44, Koos Zevenhoven wrote:
Although read_text might come in handy as an alias for "GET". :) That is when you don't care if you read locally or remotely. So, I can see room for this.
Yes :).
What about a read_json? Should the underlying request set Accept types accordingly (read_json demands text/json or application/json, read_text demands text/plain? what if I want HTML? Need another method for that?) What if content-transfer-encoding isn't set, or the data contains bytes that aren't valid for it?