[−][src]Function yukikaze::extractor::raw_bytes_notify
pub async fn raw_bytes_notify<S, I, E, N: Notifier>(
__arg0: S,
encoding: ContentEncoding,
limit: Option<usize>,
__arg3: N
) -> Result<Bytes, BodyReadError> where
S: HttpBody<Data = I, Error = E> + Unpin,
I: Into<Bytes> + Buf,
E: Into<BodyReadError>,
Extracts body as bytes from Stream
Params:
body
- Stream of data chunks to read. If limit is hit, body is not exhausted completely.encoding
- Specifies encoding to use.limit
- Specifies limit on body size, if not specified uses default 4kb