Implement HTTP chunked streaming

Transcoding is not supported yet.

In the current state of affairs, we will crash if the client closes the
connection before the tranfser is done. This is a limitation of evhttp,
it is not possible to detect this condition. This will need to be fixed
in evhttp.
This commit is contained in:
Julien BLACHE
2009-04-25 10:40:47 +02:00
parent 5e8275a998
commit f05a55e7fc
2 changed files with 285 additions and 0 deletions

View File

@@ -2,6 +2,13 @@
#ifndef __HTTPD_H__
#define __HTTPD_H__
#include <event.h>
#include <evhttp.h>
void
httpd_stream_file(struct evhttp_request *req, int id);
int
httpd_init(void);