Struct trillium_http_types::transfer::TransferEncoding [−][src]
pub struct TransferEncoding { /* fields omitted */ }Expand description
The form of encoding used to safely transfer the payload body to the user.
Specifications
Examples
use http_types::Response; use http_types::transfer::{TransferEncoding, Encoding}; let mut encoding = TransferEncoding::new(Encoding::Chunked); let mut res = Response::new(200); res.insert_header(&encoding, &encoding); let encoding = TransferEncoding::from_headers(res)?.unwrap(); assert_eq!(encoding, &Encoding::Chunked);
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Access the header’s name.
Access the header’s value.
Auto Trait Implementations
impl RefUnwindSafe for TransferEncodingimpl Send for TransferEncodingimpl Sync for TransferEncodingimpl Unpin for TransferEncodingimpl UnwindSafe for TransferEncoding