xref: /lighttpd1.4/src/http_chunk.h (revision 49e9f0ac)
1 #ifndef _HTTP_CHUNK_H_
2 #define _HTTP_CHUNK_H_
3 #include "first.h"
4 
5 #include "base_decls.h"
6 
7 int http_chunk_append_mem(server *srv, connection *con, const char * mem, size_t len); /* copies memory */
8 int http_chunk_append_buffer(server *srv, connection *con, buffer *mem); /* may reset "mem" */
9 int http_chunk_transfer_cqlen(server *srv, connection *con, chunkqueue *src, size_t len);
10 int http_chunk_append_file(server *srv, connection *con, buffer *fn); /* copies "fn" */
11 void http_chunk_append_file_fd(server *srv, connection *con, buffer *fn, int fd, off_t sz);
12 int http_chunk_append_file_range(server *srv, connection *con, buffer *fn, off_t offset, off_t len); /* copies "fn" */
13 void http_chunk_close(server *srv, connection *con);
14 
15 #endif
16