add socks4 to readme
This commit is contained in:
@@ -106,7 +106,7 @@ You can control them when including ureq as a dependency.
|
|||||||
* `charset` enables interpreting the charset part of the Content-Type header
|
* `charset` enables interpreting the charset part of the Content-Type header
|
||||||
(e.g. `Content-Type: text/plain; charset=iso-8859-1`). Without this, the
|
(e.g. `Content-Type: text/plain; charset=iso-8859-1`). Without this, the
|
||||||
library defaults to Rust's built in `utf-8`.
|
library defaults to Rust's built in `utf-8`.
|
||||||
* `socks-proxy` enables proxy config using the `socks://` and `socks5://` prefix.
|
* `socks-proxy` enables proxy config using the `socks4://`, `socks4a://`, `socks5://` and `socks://` prefix.
|
||||||
|
|
||||||
## Plain requests
|
## Plain requests
|
||||||
|
|
||||||
@@ -171,7 +171,7 @@ to encode the request body using that.
|
|||||||
|
|
||||||
## Proxying
|
## Proxying
|
||||||
|
|
||||||
ureq supports two kinds of proxies, HTTP [`CONNECT`] and [`SOCKS5`], the former is
|
ureq supports two kinds of proxies, HTTP [`CONNECT`], [`SOCKS4`] and [`SOCKS5`], the former is
|
||||||
always available while the latter must be enabled using the feature
|
always available while the latter must be enabled using the feature
|
||||||
`ureq = { version = "*", features = ["socks-proxy"] }`.
|
`ureq = { version = "*", features = ["socks-proxy"] }`.
|
||||||
|
|
||||||
@@ -237,6 +237,7 @@ the dependencies required by an async API.
|
|||||||
[tokio]: https://github.com/tokio-rs/tokio#tokio
|
[tokio]: https://github.com/tokio-rs/tokio#tokio
|
||||||
[what-color]: https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/
|
[what-color]: https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/
|
||||||
[`CONNECT`]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/CONNECT
|
[`CONNECT`]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/CONNECT
|
||||||
|
[`SOCKS4`]: https://en.wikipedia.org/wiki/SOCKS#SOCKS4
|
||||||
[`SOCKS5`]: https://en.wikipedia.org/wiki/SOCKS#SOCKS5
|
[`SOCKS5`]: https://en.wikipedia.org/wiki/SOCKS#SOCKS5
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -126,7 +126,7 @@
|
|||||||
//! * `charset` enables interpreting the charset part of the Content-Type header
|
//! * `charset` enables interpreting the charset part of the Content-Type header
|
||||||
//! (e.g. `Content-Type: text/plain; charset=iso-8859-1`). Without this, the
|
//! (e.g. `Content-Type: text/plain; charset=iso-8859-1`). Without this, the
|
||||||
//! library defaults to Rust's built in `utf-8`.
|
//! library defaults to Rust's built in `utf-8`.
|
||||||
//! * `socks-proxy` enables proxy config using the `socks://` and `socks5://` prefix.
|
//! * `socks-proxy` enables proxy config using the `socks4://`, `socks4a://`, `socks5://` and `socks://` prefix.
|
||||||
//!
|
//!
|
||||||
//! # Plain requests
|
//! # Plain requests
|
||||||
//!
|
//!
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
//!
|
//!
|
||||||
//! # Proxying
|
//! # Proxying
|
||||||
//!
|
//!
|
||||||
//! ureq supports two kinds of proxies, HTTP [`CONNECT`] and [`SOCKS5`], the former is
|
//! ureq supports two kinds of proxies, HTTP [`CONNECT`], [`SOCKS4`] and [`SOCKS5`], the former is
|
||||||
//! always available while the latter must be enabled using the feature
|
//! always available while the latter must be enabled using the feature
|
||||||
//! `ureq = { version = "*", features = ["socks-proxy"] }`.
|
//! `ureq = { version = "*", features = ["socks-proxy"] }`.
|
||||||
//!
|
//!
|
||||||
@@ -260,6 +260,7 @@
|
|||||||
//! [tokio]: https://github.com/tokio-rs/tokio#tokio
|
//! [tokio]: https://github.com/tokio-rs/tokio#tokio
|
||||||
//! [what-color]: https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/
|
//! [what-color]: https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/
|
||||||
//! [`CONNECT`]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/CONNECT
|
//! [`CONNECT`]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/CONNECT
|
||||||
|
//! [`SOCKS4`]: https://en.wikipedia.org/wiki/SOCKS#SOCKS4
|
||||||
//! [`SOCKS5`]: https://en.wikipedia.org/wiki/SOCKS#SOCKS5
|
//! [`SOCKS5`]: https://en.wikipedia.org/wiki/SOCKS#SOCKS5
|
||||||
//!
|
//!
|
||||||
//! ------------------------------------------------------------------------------
|
//! ------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user