#[repr(C)]pub enum REQUEST_METHOD {
GET = 1,
POST = 2,
PUT = 3,
DELETE = 4,
}
Expand description
Request methods.
Variants§
GET = 1
Sends a plain HTTP GET request.
Url-encoded params (if any) are appended to the url in order to form the request.
POST = 2
Sends an HTTP POST request.
The params are serialized as Content-Type: application/x-www-form-urlencoded;charset=utf-8
.
PUT = 3
Sends an HTTP PUT request.
The params are serialized as Content-Type: multipart/form-data; boundary= ...
.
DELETE = 4
Sends an HTTP DELETE request.
Trait Implementations§
Source§impl Debug for REQUEST_METHOD
impl Debug for REQUEST_METHOD
Source§impl PartialEq for REQUEST_METHOD
impl PartialEq for REQUEST_METHOD
impl StructuralPartialEq for REQUEST_METHOD
Auto Trait Implementations§
impl Freeze for REQUEST_METHOD
impl RefUnwindSafe for REQUEST_METHOD
impl Send for REQUEST_METHOD
impl Sync for REQUEST_METHOD
impl Unpin for REQUEST_METHOD
impl UnwindSafe for REQUEST_METHOD
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more