Macro anterofit::stream
[−]
[src]
macro_rules! stream { ($stream:expr) => { ... }; ($stream:expr, filename: $filename:expr) => { ... }; ($stream:expr, content_type: $conttype:expr) => { ... }; ($stream:expr, filename: $filename:expr, content_type: $conttype:expr) => { ... }; }
A field value for anything that is Read + Send + 'static
.
Adding a stream field to the request will turn it into a multipart/form-data
request
and treat it as a file field.
If given, the filename
and content_type
keys will be supplied with the request.
filename
can be a borrowed or owned string, and content_type
should be a Mime
value from the mime
crate.