[−][src]Crate yukikaze
雪風(Yukikaze)
Beautiful and elegant Yukikaze is little HTTP library based on hyper.
Features
- Uses rustls for TLS
- Support of various types of bodies: Plain text, JSON, multipart and forms
- Simple redirect policy with option to limit number of redirections.
- Support for text encodings aside from UTF-8.
- Various helpers to extract useful headers: Cookies, ETag/Last-Modified, Content related headers.
- File redirection support for response's body.
- Notify interface to indicate progress of body's download.
Available cargo features
client
- Enables client module. By defaulton
.rustls
- Enables use ofrustls
for default SSL implementation. By defaulton
flate2-c
- Enables decompression usingflate2
crate with C backend. Defaulton
.flate2-rust
- Enables decompression usingflate2
crate with Rust backend. Defaultoff
.encoding
- Enablesencoding
crate support. Defaultoff
.websocket
- Enables Websocket Upgrade mechanism. Defaultoff
. Enablescarry_extensions
whenon
.carry_extensions
- Carrieshttp::Extensions
from request to resolvedResponse
. Defaultoff
.
Getting started:
Re-exports
pub extern crate lazy_static; |
pub extern crate bytes; |
pub extern crate http; |
pub extern crate percent_encoding; |
pub extern crate async_timer; |
pub extern crate encoding_rs; |
pub extern crate flate2; |
pub extern crate ring; |
pub extern crate hyper; |
pub extern crate etag; |
pub extern crate cookie; |
pub extern crate serde; |
pub extern crate serde_json; |
pub extern crate serde_urlencoded; |
pub extern crate data_encoding; |
pub extern crate httpdate; |
Modules
client | Client module |
extractor | Extractors module |
header | Headers module |
rt | Runtime support |
upgrade | Upgrade extension for client side |
utils | Yukikaze-sama utilities. |
Macros
awaitic | Await future in async context. |
declare_global_client | Declares global client for use. |