Enum stream_httparse::Method [−][src]
The different HTTP-Methods as defined by RFC 2616 5.1.1
Variants
Requests the Communication-Options available for a given Ressource
Retrieves the specified Ressource from the Server
Identical to the GET-Method, but the Server is not required to return a Response-Body
Used to post Data to the Server
Tells the Server to store the supplied Body under a given Ressource URI
Requests that the given Data assosicated with the Ressource-URI is deleted
Used to invoke a remote application-layer loopback
Reserved
Implementations
impl Method
[src]
pub fn parse(raw_method: &str) -> Option<Method>
[src]
Parses the raw Method into one of the known Methods, returns None if the Method is unknown
pub fn serialize(&self) -> &'static str
[src]
Serializes the Method into a static String for that Method
Trait Implementations
impl Clone for Method
[src]
impl Debug for Method
[src]
impl Display for Method
[src]
impl PartialEq<Method> for Method
[src]
impl StructuralPartialEq for Method
[src]
Auto Trait Implementations
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,