Skip to content

Remove hard dependency on Faraday #1524

@andrewhavens

Description

@andrewhavens

Describe the idea
There is a hard dependency on Faraday. It is required within http_transport.rb which gets required automatically by transport.rb, even if you don't intend to use the HTTPTransport class.

Why do you think it's beneficial to most of the users
The SDK provides the ability to specify a custom transport (which was really helpful) but sort of defeats the purpose when you have a hard dependency that never gets used. There are also other http gems that people may be using and might not want to require additional http libraries.

Possible implementation
Either remove the hard dependency on requiring Faraday (call require as needed before initializing an http client). Or remove the hard dependency on requiring http_transport.rb.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions