Skip to content

Commit

Permalink
Refactors.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Mar 12, 2023
1 parent ee3809e commit 8f81ef1
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions crates/wasi-http/src/component_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,8 @@ enum HttpError {
MemoryAccessError(#[from] wasmtime::MemoryAccessError),
#[error("Buffer too small")]
BufferTooSmall,
// #[error("Header not found")]
// HeaderNotFound,
#[error("UTF-8 error")]
Utf8Error(#[from] std::str::Utf8Error),
// #[error("Destination not allowed")]
// DestinationNotAllowed(String),
// #[error("Invalid method")]
// InvalidMethod,
// #[error("Invalid encoding")]
// InvalidEncoding,
// #[error("Invalid URL")]
// InvalidUrl,
// #[error("HTTP error")]
// RequestError(#[from] reqwest::Error),
// #[error("Runtime error")]
// RuntimeError,
// #[error("Too many sessions")]
// TooManySessions,
}

impl From<HttpError> for u32 {
Expand Down

0 comments on commit 8f81ef1

Please sign in to comment.