Expand description
RAT Engine - 高性能 Web 框架
RAT Engine 是一个基于 Rust 的高性能 Web 框架,提供:
- 高性能工作窃取调度器
- 零拷贝网络 I/O
- 内存池管理
- 原子性能监控
- 内容压缩支持
- Python 集成支持
- Flask 风格的 API
Re-exports§
pub use server::ServerConfig;pub use server::Router;pub use server::WorkerPool;pub use server::run_server_with_router;Deprecated pub use engine::RatEngine;pub use server::grpc_types::GrpcStreamMessage;Deprecated pub use utils::sys_info::SystemInfo;pub use utils::logger::Logger;pub use utils::logger::LogLevel;pub use utils::logger::LogConfig;pub use error::RatError;pub use error::RatResult;pub use error::CacheError;pub use server::performance::optimize_for_throughput;pub use engine::smart_transfer::SmartTransferManager;
Modules§
- cache
- 缓存模块
- common
- 公共模块
- compression
- 压缩模块
- engine
- RAT Engine 高性能核心模块
- error
- RAT Engine 错误处理模块
- server
- RAT Engine 服务器模块
- utils
Macros§
Structs§
- Bytes
- A cheaply cloneable and sliceable chunk of contiguous memory.
- Empty
- A body that is always empty.
- Error
- Represents errors that can occur handling HTTP streams.
- Frame
- A frame of any kind related to an HTTP stream (body).
- Full
- A body that consists of a single chunk.
- Header
Map - A set of HTTP headers
- Incoming
- A stream of
Bytes, used when receiving bodies from the network. - Method
- The Request Method (VERB)
- Request
- Represents an HTTP request.
- Response
- Represents an HTTP response
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.). - Uri
- The URI component of a request.
- Version
- Represents a version of the HTTP spec.
- Version
Info - 版本信息结构
Constants§
Traits§
- BodyExt
- An extension trait for
http_body::Bodyadding various combinators and adapters
Functions§
- version_
info - 获取版本信息