[−][src]Function rouille::content_encoding::accepted_content_encodings
ⓘImportant traits for AcceptedContentEncodingsIter<'a>
pub fn accepted_content_encodings(
request: &Request
) -> AcceptedContentEncodingsIter
Returns an iterator of the list of content encodings accepted by the request.
Example
use rouille::{Request, Response}; use rouille::content_encoding; fn handle(request: &Request) -> Response { for encoding in content_encoding::accepted_content_encodings(request) { // ... } // ... }