[][src]Function yukikaze::extractor::text_notify

pub async fn text_notify<S, N: Notifier>(
    body: S,
    encoding: ContentEncoding,
    limit: Option<usize>,
    notify: N
) -> Result<String, BodyReadError> where
    S: StreamExt<Item = Result<Chunk, Error>> + Unpin

Extracts body as text from Stream

Params:

body - Stream of data chunks to read. If limit is hit, body is not exhausted completely. encoding - Specifies content's encoding to use. limit - Specifies limit on body size, if not specified uses default 4kb