-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: implemented hyper-1.0 for http/1.1 and http/2. todo: http/3 and …
…backend handler
- Loading branch information
1 parent
f3e8f84
commit b639e79
Showing
24 changed files
with
1,133 additions
and
1,274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
[submodule "submodules/h3"] | ||
path = submodules/h3 | ||
url = [email protected]:junkurihara/h3.git | ||
[submodule "submodules/quinn"] | ||
path = submodules/quinn | ||
url = [email protected]:junkurihara/quinn.git | ||
[submodule "submodules/s2n-quic"] | ||
path = submodules/s2n-quic | ||
url = [email protected]:junkurihara/s2n-quic.git | ||
[submodule "submodules/rusty-http-cache-semantics"] | ||
path = submodules/rusty-http-cache-semantics | ||
url = [email protected]:junkurihara/rusty-http-cache-semantics.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use http::StatusCode; | ||
use thiserror::Error; | ||
|
||
pub type HttpResult<T> = std::result::Result<T, HttpError>; | ||
|
||
/// Describes things that can go wrong in the handler | ||
#[derive(Debug, Error)] | ||
pub enum HttpError {} | ||
|
||
impl From<HttpError> for StatusCode { | ||
fn from(e: HttpError) -> StatusCode { | ||
match e { | ||
_ => StatusCode::INTERNAL_SERVER_ERROR, | ||
} | ||
} | ||
} |
Oops, something went wrong.