Skip to content

Conversation

@LaurenceJJones
Copy link
Member

@LaurenceJJones LaurenceJJones commented Jan 6, 2026

  • Add get_body_iterator() function that streams request bodies in chunks
  • Support both in-memory and temp file bodies
  • Add APPSEC_BODY_CHUNK_SIZE configuration (default 8KB, range 8KB-64KB)
  • Remove HTTP/2/3 early return check (Content-Length inferred from headers/body)
  • Add header_number() helper to handle table headers
  • Stream bodies to APPSEC to reduce memory usage

The goal is if the body is buffered to a temporary file we can stream chunk it from the file to request instead of bringing the whole file into memory. For smaller bodies this does not improve the memory usage.

- Add get_body_iterator() function that streams request bodies in chunks
- Support both in-memory and temp file bodies
- Add APPSEC_BODY_CHUNK_SIZE configuration (default 8KB, range 8KB-64KB)
- Remove HTTP/2/3 early return check (Content-Length inferred from headers/body)
- Add header_number() helper to handle table headers
- Stream bodies to APPSEC to reduce memory usage and improve timeout handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant