Re-exports§
pub use helpers::traits::http_request::RequestUtils;pub use helpers::traits::http_request::RequestUtilsArena;pub use helpers::traits::http_response::ResponseUtil;pub use helpers::traits::http_response::ResponseUtilArena;pub use helpers::traits::http_stream::StreamHttp;pub use helpers::traits::http_stream::StreamHttpArena;pub use helpers::traits::http_stream::StreamHttpArenaWriter;pub use helpers::traits::zero_copy::parse_json_file;pub use helpers::traits::zero_copy::CacheConfig;pub use helpers::traits::zero_copy::CacheStats;pub use helpers::traits::zero_copy::CachedFileData;pub use helpers::traits::zero_copy::FileLoadResult;pub use helpers::traits::zero_copy::ZeroCopyCache;pub use helpers::traits::zero_copy::ZeroCopyFile;pub use connection_pool::ConnectionPool;pub use connection_pool::ConnectionPoolConfig;pub use connection_pool::ConnectionStats;
Modules§
Macros§
Structs§
- Accept
- Arena
Body - Arena
Writer - Body
- HTTP 요청 본문. 헤더만 먼저 파싱한 뒤 stream을 그대로 보유하여
핸들러가 청크 단위로 읽거나 (
read_chunk/into_multipart), 전체를 한 번에 버퍼링 (bytes(cap)) 할 수 있다. - Bytes
- A cheaply cloneable and sliceable chunk of contiguous memory.
- Options
- Server
- Test
Data - Writer
- 응답 작성기. 0.14.0부터
stream은 socket의 write half(OwnedWriteHalf)이다. 같은 TCP 연결의 read half는Body가 보유하며, 응답을 보내기 전에 body 스트리밍이 끝나는 것이 일반적인 흐름.
Enums§
- Auto
Parse Result Accept::parse_request_auto(arena_cap)결과. Content-Length가arena_cap이하이면Arena(zero-copy 파싱), 초과/미지정이면Streaming(메모리 절약).
Constants§
- DEFAULT_
AUTO_ ARENA_ CAP parse_request_auto()기본 cap — 50 MiB. 이 이하 Content-Length는 arena (zero-copy parsing), 초과/미상은 streaming으로 처리. 커스텀 cap이 필요하면parse_request_auto_with_cap(cap).