4 releases

0.2.0 Mar 12, 2019
0.1.2 Mar 4, 2019
0.1.1 Mar 3, 2019
0.1.0 Mar 3, 2019

#453 in HTTP client

38 downloads per month

MPL-2.0 license

52KB
1.5K SLoC

Why Lynx

This project's goal is to provide a lightweight and simple HTTP client for the Rust ecosystem. The intended use is for projects that have HTTP needs where performance is not critical or when HTTP is not the main purpose of the application. Note that the project still tries to perform well and avoid allocation where possible, but stays away from Rust's asynchronous stack to provide a crate that's as small as possible. Features are provided behind feature flags when possible to allow users to get just what they need. Here are the goals of the project:

  • Lightweight
  • Secure
  • Easy to use
  • Modular
  • HTTP/1.1, eventually HTTP/2.0
  • Use quality crates from the ecosystem (http, url, encoding_rs), not reinventing the wheel.

Current feature set

  • Query parameters
  • Request headers
  • Tls
  • Automatic redirection
  • Streaming response body
  • Text encoding support
  • Gzip, deflate support
  • Transfer-Encoding: chunked

Feature being worked on

  • File upload, form data
  • Thorough test suite
  • Connection: keep-alive
  • serde support behind a feature flag

License

This project is licensed under the MPL-2.0.

Dependencies

~2–12MB
~184K SLoC