Skip to content

Commit c3beb0d

Browse files
committed
helper function
1 parent 13ab9fe commit c3beb0d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ where
201201
.unwrap()
202202
}
203203

204+
/// A HTTP Reponse with no body and the 404 HTTP status code
205+
pub fn empty_404() -> Response {
206+
empty_response(404)
207+
}
208+
204209
/// Converts `text` to bytes (UTF8) and sends that as the body with that `status_code` and HTML
205210
/// `Content-Type` header (`text/html`)
206211
pub fn html_response<T, S>(status_code: T, body: S) -> Response

0 commit comments

Comments
 (0)