main_5.rs

PHOTO EMBED

Fri Jun 04 2021 05:28:37 GMT+0000 (Coordinated Universal Time)

Saved by @fdeantoni #rust

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;
content_copyCOPY