mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
no more allocation of new buffers for each small thing, new request, etc. Instead we keep a pool of buffers and use a weak form of RAII to make sure we recycle them once done. - add `with_alloc_buf` for the user to do so - add `alloc_buf_for_stream` to tie buffer's lifetime to a byte stream, typically for a streaming response. |
||
|---|---|---|
| .. | ||
| files | ||
| dune | ||
| echo.ml | ||
| run_test.sh | ||
| sse_client.ml | ||
| sse_server.ml | ||
| test_output.txt.expected | ||