[][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 default on.
  • rustls - Enables use of rustls for default SSL implementation. By default on
  • flate2-c - Enables decompression using flate2 crate with C backend. Default on.
  • flate2-rust - Enables decompression using flate2 crate with Rust backend. Default off.
  • encoding - Enables encoding crate support. Default off.
  • websocket - Enables Websocket Upgrade mechanism. Default off. Enables carry_extensions when on.
  • carry_extensions - Carries http::Extensions from request to resolved Response. Default off.

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.