Validates content-length header against actual data received
Instance methods
add_data(data : Bytes) : Nil
Add received data and validate against expected length
Sourceexpected_length
Get the expected content length
Sourcehas_content_length?
Check if content-length was specified
Sourcereceived_length
Get the received length so far
Sourcevalidate_end_of_stream
Validate that we received exactly the expected amount when stream ends
Source