GithubHelp home page GithubHelp logo

Proxy server support about sttp HOT 13 CLOSED

softwaremill avatar softwaremill commented on May 17, 2024
Proxy server support

from sttp.

Comments (13)

robsonpeixoto avatar robsonpeixoto commented on May 17, 2024

That is a good way to define proxy
http proxy: http://docs.python-requests.org/en/master/user/advanced/#proxies
socks5 proxy: http://docs.python-requests.org/en/master/user/advanced/#socks

from sttp.

omainegra avatar omainegra commented on May 17, 2024

Anybody working on this? I can take it

from sttp.

adamw avatar adamw commented on May 17, 2024

@omainegra go ahead :)

from sttp.

adamw avatar adamw commented on May 17, 2024

any luck with that issue maybe? :)

from sttp.

omainegra avatar omainegra commented on May 17, 2024

@adamw Still working on this, sorry for the delay but I got hit by Irma and electricity and internet just came back.

from sttp.

adamw avatar adamw commented on May 17, 2024

@omainegra sorry to hear that, hope that you & your family is fine! no hurry with the code, just checking :)

from sttp.

atais avatar atais commented on May 17, 2024

I would really like to see that working 👍

from sttp.

adamw avatar adamw commented on May 17, 2024

@omainegra hey, is everything fine? we didn't hear from you for a while

from sttp.

adamw avatar adamw commented on May 17, 2024

@omainegra I hope you are fine, for now I implemented proxy support as an option passed to the backend when creating it. Hope to hear from you in the future :)

from sttp.

adamw avatar adamw commented on May 17, 2024

Released in 0.0.17

from sttp.

atais avatar atais commented on May 17, 2024

How can I use it with Monix Backend?

Also wouldn't it be better to try to read default java proxy parameters by default?

from sttp.

adamw avatar adamw commented on May 17, 2024

For example:

implicit val backend = AsyncHttpClientMonixBackend(
  options = SttpBackendOptions.httpProxy("some.host", 8080))

sttp.get(uri"...").send()

Sure, reading the default java proxy parameters is an option - though I don't like this style of "global" configuration. Maybe you'd like to attempt making a PR? :)

from sttp.

atais avatar atais commented on May 17, 2024

Maybe you'd like to attempt making a PR? :)

I sure will try 👍

Also, thanks for the example. I was using AsyncHttpClientMonixHandler back from 0.0.12 so that was why I could not find a proper option :-)

from sttp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.