Uses old Rust 2015
0.2.1 |
|
---|
#16 in #non
8KB
112 lines
http-fetch
A small Rust library to fetch web pages.
let body = fetch_page(url); // fetch the response body of the given URL as String
Development
When running on OS X with a homebrew installed openssl version, make sure to pass on the correct paths to cargo to build:
env OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include DEP_OPENSSL_INCLUDE=/usr/local/opt/openssl/include cargo test
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~8MB
~156K SLoC