feat(lib): switch to non-blocking (asynchronous) IO
BREAKING CHANGE: This breaks a lot of the Client and Server APIs. Check the documentation for how Handlers can be used for asynchronous events.
This commit is contained in:
@@ -547,6 +547,12 @@ impl Ord for StatusCode {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for StatusCode {
|
||||
fn default() -> StatusCode {
|
||||
StatusCode::Ok
|
||||
}
|
||||
}
|
||||
|
||||
/// The class of an HTTP `status-code`.
|
||||
///
|
||||
/// [RFC 7231, section 6 (Response Status Codes)](https://tools.ietf.org/html/rfc7231#section-6):
|
||||
|
||||
Reference in New Issue
Block a user