Function rouille::input::plain_text_body_with_limit[][src]

pub fn plain_text_body_with_limit(
    request: &Request,
    limit: usize
) -> Result<String, PlainTextError>

Reads plain text data from the body of a request.

This does the same as plain_text_body, but with a customizable limit in bytes to how much data will be read from the request. If the limit is exceeded, a LimitExceeded error is returned.