mapbox / mapbox-sdk-rb

A Ruby interface to Mapbox APIs.
Other
59 stars 32 forks source link

API Request Using Proxy #18

Closed charliegeiger89 closed 6 years ago

charliegeiger89 commented 6 years ago

Is there currently any way to specify a proxy when making API requests? I am trying to avoid setting a global proxy value via RestClient.proxy = ENV['http_proxy'].

I was attempting something like this: Mapbox::Geocoder.geocode_forward("foo", limit: 1, proxy: "http://1.2.3.4:8080")

KaiBot3000 commented 6 years ago

@charliegeiger89 can you say more about your need for this feature? Proxying requests to Mapbox APIs for the purpose of redistribution is against Mapbox TOS