proxydetect

Crates.ioproxydetect
lib.rsproxydetect
version0.1.0
sourcesrc
created_at2023-09-11 05:35:57.209844
updated_at2023-09-11 05:35:57.209844
descriptionA library to automatically detect the system proxy for a given URL
homepage
repositoryhttps://gitlab.com/cdrzewiecki/proxydetect
max_upload_size
id969279
size4,007
(drzewiec)

documentation

README

proxydetect

This library is motivated by Daniel Stenberg's post about why curl doesn't use libproxy to automatically detect the user's proxy. I figure, may as well take a shot at providing a library which fulfill's curl's needs for a proxy library. So with that in mind, the goals of this library:

  • Take inspiration from the strengths of libproxy - provide simple usage options so that people who just want the defaults can use them
  • Provide good documentation on how the library works
  • Ensure good test coverage
  • Add the ability to go beyond the defaults, by specifying things like URL parsing/retrieval external to the library
  • Add a non-blocking option to use the library, for apps (like curl) which want to be able to block as little as humanly possible

It's my hope that this will be useful to someone, or if not, at least hopefully nobody will think I'm full of hubris for trying. :)

Commit count: 2

cargo fmt