let hello = warp::path!("hello" / String) .and(warp::any().map(move || validator.clone())) .and(warp::addr::remote()) .and_then(response); warp::serve(hello).run(([127, 0, 0, 1], 3030)).await;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter