Faraday v0.9.2 Release Notes

  • Adapters:

    • Enable gzip compression for httpclient
    • ๐Ÿ›  Fixes default certificate store for httpclient not having default paths.
    • ๐Ÿ‘‰ Make excon adapter compatible with 0.44 excon version
    • โž• Add compatibility with Patron 0.4.20
    • 0๏ธโƒฃ Determine default port numbers in Net::HTTP adapters (Addressable compatibility)
    • em-http: wrap "connection closed by server" as ConnectionFailed type
    • Wrap Errno::ETIMEDOUT in Faraday::Error::TimeoutError

    Utils:

    • โž• Add Rack-compatible support for parsing a[][b]=c nested queries
    • Encode nil values in queries different than empty strings. Before: a=; now: a.
    • Have Faraday::Utils::Headers#replace clear internal key cache
    • Dup the internal key cache when a Headers hash is copied

    Env and middleware:

    • Ensure env stored on middleware response has reference to the response
    • Ensure that Response properties are initialized during on_complete (VCR compatibility)
    • Copy request options in Faraday::Connection#dup
    • Env custom members should be copied by Env.from(env)
    • Honour per-request request.options.params_encoder
    • ๐Ÿ›  Fix interval_randomness data type for Retry middleware
    • โž• Add maximum interval option for Retry middleware