[mod_cgi] fix pipe_cloexec() when no O_CLOEXEC
[lighttpd.git] / src / http_chunk.h
blob791b7634b5db1fb5d281c234877ed4723acb4c9c
1 #ifndef _HTTP_CHUNK_H_
2 #define _HTTP_CHUNK_H_
3 #include "first.h"
5 #include "server.h"
6 #include <sys/types.h>
8 int http_chunk_append_mem(server *srv, connection *con, const char * mem, size_t len); /* copies memory */
9 int http_chunk_append_buffer(server *srv, connection *con, buffer *mem); /* may reset "mem" */
10 int http_chunk_append_file(server *srv, connection *con, buffer *fn); /* copies "fn" */
11 int http_chunk_append_file_range(server *srv, connection *con, buffer *fn, off_t offset, off_t len); /* copies "fn" */
12 void http_chunk_close(server *srv, connection *con);
14 #endif