|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
Layer 7 static file responses: open a path on a mount and page it out over a slot. More...
#include "protocore_config.h"Go to the source code of this file.
Layer 7 static file responses: open a path on a mount and page it out over a slot.
serve_file_internal() opens the file and writes the response head; file_send_pump() writes one send-buffer window per call until the file is drained, so a response larger than the buffer is spread across dispatches instead of held in one. protocore_file_holds_slot() reports whether a slot is mid-paging.
Definition in file file_serving.h.