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