Crate retry_after [] [src]

A Retry-After header implementation for Hyper

This crate's repo is located at https://github.com/jwilm/retry-after.

Examples

extern crate chrono;
extern crate retry_after;

use chrono::{Duration, UTC};
use retry_after::RetryAfter;

// Create a RetryAfter::Delay header
let retry_after_delay = RetryAfter::Delay(Duration::seconds(300));

// Create a RetryAfter::DateTime header
let retry_after_dt = RetryAfter::DateTime(UTC::now() + Duration::seconds(300));

For more examples, please see the examples directory at the crate root.

Enums

RetryAfter

Retry-After header, defined in RFC7231