Module canteen::utils
[−]
[src]
Functions
_conv_systemtime |
Converts std::time::SystemTime to chrono::DateTime |
err_403 |
Default handler function for HTTP 403 errors. |
err_403_json |
Default handler function for HTTP 403 errors for XHR. |
err_404 |
Default handler function for HTTP 404 errors. |
err_404_json |
Default handler function for HTTP 500 errors for XHR. |
err_500 |
Default handler function for HTTP 500 errors. |
err_500_json |
Default handler function for HTTP 500 errors for XHR. |
make_response |
Convenience method for creating a response from the basic components required (a request body, content type, and response status). |
replace_escape |
Replace the URI escape codes with their ASCII equivalents. |
static_file |
Handler that sends static files relative to the current working directory. |