[][src]Function yukikaze::extractor::file

pub async fn file<S, I, E>(
    file: File,
    __arg1: S,
    encoding: ContentEncoding
) -> Result<File, BodyReadError> where
    S: HttpBody<Data = I, Error = E> + Unpin,
    I: Into<Bytes> + Buf,
    E: Into<BodyReadError>, 

Extracts body as bytes from Stream and write it to file

Params:

  • file - Into which to write
  • body - Stream of data chunks to read. If limit is hit, body is not exhausted completely.
  • encoding - Specifies encoding to use.