mizchi/x/http does not have a README file
pub suberror HttpError {
NetworkError(String)
InvalidUrl(String)
TimeoutError
NotSupported
} derive(Debug)impl BinaryReader for Clientimpl BinaryWriter for Clientasync fn Client::peek_until(self : Client, pattern : BytesView, include_delimiter? : Bool) -> BytesView? raise ReaderErrorasync fn Client::request(self : Client, meth : RequestMethod, path : StringView, extra_headers? : Map[String, String]) -> Unit raise HttpErrorpub struct NativeServer {
// private fields
}async fn NativeServer::new(host? : String, port? : Int, headers? : Map[String, String], dual_stack? : Bool, reuse_addr? : Bool, max_request_head_bytes? : Int, max_request_body_bytes? : Int, request_timeout_ms? : Int, keep_alive_timeout_ms? : Int, headers_timeout_ms? : Int) -> NativeServer raise HttpErrorasync fn NativeServer::run_forever(self : NativeServer, handle : async (Request, &BinaryReader, ServerConnection) -> Unit, allow_failure? : Bool, max_connections? : Int) -> Unit raise HttpErrorimpl Show for RequestMethodasync fn Server::new(host? : String, port? : Int, headers? : Map[String, String], dual_stack? : Bool, reuse_addr? : Bool, max_request_body_bytes? : Int, request_timeout_ms? : Int, keep_alive_timeout_ms? : Int, headers_timeout_ms? : Int, accept_queue_limit? : Int, trust_proxy? : Bool) -> Server raise HttpErrorasync fn Server::run_forever(self : Server, f : async (Request, &BinaryReader, ServerConnection) -> Unit, allow_failure? : Bool, max_connections? : Int) -> Unit raise HttpErrorimpl BinaryReader for ServerConnectionimpl BinaryWriter for ServerConnectionasync fn ServerConnection::drop_exactly(self : ServerConnection, len : Int) -> Unit raise ReaderErrorasync fn ServerConnection::peek_at_least(self : ServerConnection, min_len : Int) -> BytesView raise ReaderErrorasync fn ServerConnection::peek_exactly(self : ServerConnection, len : Int) -> BytesView raise ReaderErrorasync fn ServerConnection::peek_until(self : ServerConnection, pattern : BytesView, include_delimiter? : Bool) -> BytesView? raise ReaderErrorasync fn ServerConnection::read(self : ServerConnection, buf : FixedArray[Byte], offset? : Int, max_len? : Int) -> Intasync fn ServerConnection::read_at_least(self : ServerConnection, min_len : Int) -> Bytes raise ReaderErrorasync fn ServerConnection::read_exactly(self : ServerConnection, len : Int) -> Bytes raise ReaderErrorasync fn ServerConnection::read_into(self : ServerConnection, dst : MutArrayView[Byte]) -> Int raise ReaderErrorasync fn ServerConnection::send_response(self : ServerConnection, code : Int, reason : String, extra_headers? : Map[String, String], cookies? : Array[Cookie]) -> Unit raise HttpErrorasync fn ServerConnection::write_once(self : ServerConnection, buf : Bytes, offset~ : Int, len~ : Int) -> IntInstall
Download zipCross-platform MoonBit compatibility facades with native delegation and accelerated JS implementations for async IO, bytes, regexp, and JSON.