- Support for HTTP proxies via the
http_proxy
andhttps_proxy
environment variables or by callingset_proxy
in 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
data
argument topost
can now accept a dictionary, in which case it is assumed that the data should be form-encoded. Response.data
is now aVector{UInt8}
instead of aString
to correctly handle binary responses. Usebytestring(::Response)
to get back the response payload as a string.- GnuTLS has been replaced with MbedTLS. Pass a
tls_conf
parameter to a request method with typeMbedTLS.SSLConfig
to override the default TLS settings. - Redirects are automatically followed unless
allow_redirects=false
is 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 aResponseStream
object. It has all the standardIO
methods, such asreadbytes
,nb_available
, etc. It also supports streaming in the body of a request withwrite_chunk
ifsend_body=false
is passed to*_streaming
. See the relevant test inruntests.jl
for an example.
This repository has been archived by the owner on May 17, 2019. It is now read-only.