Function rweb::reply[][src]

pub fn reply() -> impl Reply

Returns an empty Reply with status code 200 OK.

Example

use warp::Filter;

// GET /just-ok returns an empty `200 OK`.
let route = warp::path("just-ok")
    .map(|| {
        println!("got a /just-ok request!");
        warp::reply()
    });