buffer_request_body

Function buffer_request_body 

Source
pub async fn buffer_request_body(
    session: &mut Session,
    max_bytes: usize,
) -> SentinelResult<Vec<u8>>
Expand description

Buffer request body from session with size limits

Reads the request body from a Pingora session and buffers it up to the configured maximum size. Returns an error if the body exceeds the limit.

ยงArguments

  • session - Pingora session to read body from
  • max_bytes - Maximum bytes to buffer