Enum tauri_api::http::BodyType [−][src]
#[repr(u16)] pub enum BodyType { Form, File, Auto, }
Expand description
The request’s body type
Variants
Send request body as application/x-www-form-urlencoded
Send request body (which is a path to a file) as application/octet-stream
Detects the body type automatically
- if the body is a byte array, send is as bytes (application/octet-stream)
- if the body is an object or array, send it as JSON (application/json with UTF-8 charset)
- if the body is a string, send it as text (text/plain with UTF-8 charset)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BodyType
impl UnwindSafe for BodyType
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V