aboutsummaryrefslogtreecommitdiff
path: root/handler.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-11-10 23:56:57 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-11-11 00:04:39 +0100
commit5d47b2d12caba33793a078d2eafae6ae3d2ad921 (patch)
tree6928e070b939a37a4bf5af6ff7222e87f00ccae9 /handler.c
parentb8cd00d00fa4dd2c45615c6b0367e3b57e12e98d (diff)
Implement HTTP byte serving
This commit allows the HTTP server to return partial content to clients, rather than returning the whole resource. This can be particularly useful for applications such as audio/video playback or showing large PDF files. Notes: - Applications must not care about partial contents i.e., if a valid user request was made, applications must still return HTTP status 200 ("OK"), as usual. The HTTP server will then translate the status code to 206 ("Partial Content") if required.
Diffstat (limited to 'handler.c')
0 files changed, 0 insertions, 0 deletions