Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Rust-Web-Development-with-Rocket
/ get
Function
get
Chapter03/07Format/src/main.rs:7–9 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
5
6
#[get(
"/get"
, format =
"text/plain"
)]
7
fn get() -> &'static str {
8
"GET Request"
9
}
10
11
#[post(
"/post"
, format =
"form"
)]
12
fn post() -> &'static str {
Callers
2
app
Function · 0.85
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected