Thanks to visit codestin.com
Credit goes to docs.rs

Skip to main content

Crate atomic_http

Crate atomic_http 

Source

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§

connection_pool
external
helpers

Macros§

dev_print

Structs§

Accept
ArenaBody
ArenaWriter
Body
HTTP 요청 본문. 헤더만 먼저 파싱한 뒤 stream을 그대로 보유하여 핸들러가 청크 단위로 읽거나 (read_chunk / into_multipart), 전체를 한 번에 버퍼링 (bytes(cap)) 할 수 있다.
Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
Options
Server
TestData
Writer
응답 작성기. 0.14.0부터 stream은 socket의 write half(OwnedWriteHalf)이다. 같은 TCP 연결의 read half는 Body 가 보유하며, 응답을 보내기 전에 body 스트리밍이 끝나는 것이 일반적인 흐름.

Enums§

AutoParseResult
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).

Type Aliases§

SendableError