Skip to main content

check_chunk

Function check_chunk 

Source
pub fn check_chunk(
    received: u64,
    total: u64,
    offset: u64,
    len: u64,
) -> AppResult<u64>
Expand description

Checks a chunk against the session state and returns the new offset. offset must be exactly the bytes received so far (409 otherwise – the client resumes from the server’s offset), and the chunk must not go beyond the announced size.