Debian Codegraph @

/

debian rust-env-proxy 0.4.1-1debian librust-env-proxy-dev debian librust-env-proxy+default-dev debian librust-env-proxy-0-dev debian librust-env-proxy-0+default-dev debian librust-env-proxy-0.4-dev debian librust-env-proxy-0.4+default-dev debian librust-env-proxy-0.4.1-dev debian librust-env-proxy-0.4.1+default-dev cargo env_proxy 0.4.1 debianjsonmakefilemarkdownrustrust-c-abishelltomlyaml 15 files · 161 symbols
View dependency graph

Depends on

  • debhelper (debhelper)
  • dh-cargo (dh-cargo)
  • rust-log (librust-log-0.4+default-dev)
  • cargo, librust-url-2+default-dev, libstd-rust-dev, rustc
README (full)

env_proxy

Build Status

Determination of proxy parameters for a URL from the environment.

See the documentation for API reference.

Getting Started

Add the following to the [dependencies] section of your Cargo.toml:

env_proxy = "0.3"

Also, import the crate in your crate root:

extern crate env_proxy;

Example

use url::Url;

let url = Url::parse("http://www.example.org").unwrap();
if let Some(proxy) = env_proxy::for_url(&url).host_port() {
    println!("Proxy host: {}", proxy.0);
    println!("Proxy port: {}", proxy.1);
}

License

This program is distributed under the terms of both the MIT license and the Apache License (Version 2.0), at your option.

See LICENSE-APACHE and LICENSE-MIT.

dir debian/
dir src/
file .cargo_vcs_info.json
file .gitignore
file .travis.yml
file Cargo.toml
file Cargo.toml.orig
file LICENSE-APACHE
file LICENSE-MIT
file README.md