Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

awesome-faraday

A curated list of awesome middleware and adapters for Faraday
https://github.com/lostisland/awesome-faraday

Last synced: 4 days ago
JSON representation

  • Middleware

    • encoding - required for handling UTF-8 responses
    • follow_redirects - follow HTTP 30X redirects
    • parse_dates - parse ISO 8601 dates from response body
    • retry - retry intermittent HTTP failures
    • cookie_jar - support for HTTP cookies
    • detailed_logger - robust logging for requests & responses
    • http_cache - standards compliant cache that works with [ActiveSupport::Cache](https://api.rubyonrails.org/classes/ActiveSupport/Cache/Store.html)
    • gzip - decompress responses (needed for some non-default adapters)
    • jwt - JWT request encode & response decode with optional signing & verifications
    • mashify - parse responses into a [Hashie::Mash](https://github.com/hashie/hashie) (for Faraday 2)
    • json - encode/decode JSON requests and responses
    • oauth1 - adds an oauth1 access token to each request, via param or header
    • multipart - encode request body as a multipart form
    • rashify - parse responses into a [Hashie::Mash::Rash](https://github.com/hashie/hashie)
    • encode_xml - encode XML requests (responses decoding is included in `faraday_middleware` gem)
    • decode_xml - decode XML responses
    • `XML Middleware` - encodes requests as XML, parses response body into a hash of key/value pairs, and provides access to parser/encoder primitives for any custom handling.
    • Learn more about Middleware
    • json_request - response) - encode/decode JSON requests and responses
    • url_encoded - encode request body as a url-encoded form upload
    • authorization - middleware for the Authorization HTTP header
    • instrumentation - instrument requests using [ActiveSupport::Notifications](https://api.rubyonrails.org/classes/ActiveSupport/Notifications.html) or similar
    • logger - log request and response
    • raise_error - raises exception on 4xx or 5xx
    • caching - simple cache that works with [ActiveSupport::Cache](https://api.rubyonrails.org/classes/ActiveSupport/Cache/Store.html)
    • chunked - support for HTTP Transfer-Encoding
    • dates - parse ISO 8601 dates from response body
    • follow_redirects - follow HTTP 30X redirects
    • instrumentation - instruments requests using [ActiveSupport::Notifications](https://api.rubyonrails.org/classes/ActiveSupport/Notifications.html) or similar
    • json_fix - fix responses that insist on serving JSON with wrong mime types
    • marshal - parse responses as marshalled ruby objects
    • method_override - support for X-Http-Method-Override
    • oauth/oauth2 - adds an oauth access token to each request
    • rashify - parse responses into a [Hashie::Rash](https://github.com/hashie/hashie)
    • xml - parse responses as XML
    • yaml - parse responses as YAML
    • token_authentication - HTTP token authentication
    • url_encoded - encode request body as a url-encoded form upload
    • aws-xray - records Faraday request spans in [AWS X-Ray](https://aws.amazon.com/xray/)
  • Tooling