rupring

Attribute Macro Put

Source
#[Put]
Expand description

Put Route Annotation

#[rupring::Put(path = /)]
pub fn hello(request: rupring::Request) -> rupring::Response {
    // ...
    rupring::Response::new().text("Hello, World!".to_string())
}