- Support for HTTP proxies via the
http_proxyandhttps_proxyenvironment variables or by callingset_proxyin Julia. - A new convenience method
save(::Response, path)has been added which saves the payload of the response to a file.view(::Response)will save the response to a temporary file and open it with an external application. - The
dataargument topostcan now accept a dictionary, in which case it is assumed that the data should be form-encoded. Response.datais now aVector{UInt8}instead of aStringto correctly handle binary responses. Usebytestring(::Response)to get back the response payload as a string.- GnuTLS has been replaced with MbedTLS. Pass a
tls_confparameter to a request method with typeMbedTLS.SSLConfigto override the default TLS settings. - Redirects are automatically followed unless
allow_redirects=falseis used.history(::Response)will return the history of redirect responses that led to the given response. - The request that generated a response is available with
requestfor(::Response). - Cookies returned by the server can now be accessed with
cookies(::Response). - A new streaming API is introduced for streaming out the payload of a response before it is complete. Call
get_streaming,post_streaming, etc to get back aResponseStreamobject. It has all the standardIOmethods, such asreadbytes,nb_available, etc. It also supports streaming in the body of a request withwrite_chunkifsend_body=falseis passed to*_streaming. See the relevant test inruntests.jlfor an example.
This repository was archived by the owner on May 17, 2019. It is now read-only.