[][src]Function portal::reply::reply

pub fn reply() -> impl Reply

Returns an empty Reply with status code 200 OK.

Example

use portal::Filter;

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