euv-core 0.37.3

A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and HTML macros for WebAssembly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

/// Inherent implementation of [`FetchMethod`].
impl FetchMethod {
    /// The method name of a request, as it goes on the wire.
    ///
    /// # Returns
    ///
    /// - `&'static str` - The uppercase HTTP method name.
    pub fn as_str(&self) -> &'static str {
        match self {
            FetchMethod::Get => METHOD_GET,
            FetchMethod::Post => METHOD_POST,
            FetchMethod::Put => METHOD_PUT,
            FetchMethod::Delete => METHOD_DELETE,
        }
    }
}