Skip to content

Proxy support #18

Closed
Closed
@semaperepelitsa

Description

@semaperepelitsa

It seems to be ignoring :proxy parameter (or http_proxy environment variable). Is this not supported?

> Faraday.new(proxy: "http://example.com") { |f| f.adapter :async_http }.get("http://google.com").headers
=> {"Location"=>"http://www.google.com/",
 "Content-Type"=>"text/html; charset=UTF-8",
 "Date"=>"Thu, 28 May 2020 21:42:59 GMT",
 "Expires"=>"Sat, 27 Jun 2020 21:42:59 GMT",
 "Cache-Control"=>"public, max-age=2592000",
 "Server"=>"gws",
 "X-XSS-Protection"=>"0",
 "X-Frame-Options"=>"SAMEORIGIN"}

> Faraday.new(proxy: "http://example.com") { |f| f.adapter :net_http }.get("http://google.com").headers
=> {"content-type"=>"text/html", "date"=>"Thu, 28 May 2020 21:42:48 GMT", "server"=>"ECS (nyb/1D2F)", "content-length"=>"345"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions