Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Latest commit

 

History

History
11 lines (11 loc) · 1.59 KB

NEWS.md

File metadata and controls

11 lines (11 loc) · 1.59 KB

Requests v0.4 Release Notes

  • Support for HTTP proxies via the http_proxy and https_proxy environment variables or by calling set_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 to post can now accept a dictionary, in which case it is assumed that the data should be form-encoded.
  • Response.data is now a Vector{UInt8} instead of a String to correctly handle binary responses. Use bytestring(::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 type MbedTLS.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 a ResponseStream object. It has all the standard IO methods, such as readbytes, nb_available, etc. It also supports streaming in the body of a request with write_chunk if send_body=false is passed to *_streaming. See the relevant test in runtests.jl for an example.