Skip to content

Expose Faraday's options for API wrapper #4

@zverok

Description

@zverok

The idea is: Faraday allows to setup a lot of options (setup logger, timeouts, request headers), change adapter (backend HTTP library), add middleware (for example, add response caching). Some of this can be useful for TLAW users. Proposed syntax:

api = SomeApiWrapper.new(...) do |faraday|
  faraday.timeout = 5
end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions