xref: /lighttpd1.4/src/http_chunk.h (revision 5ff9e2f6)
1bcdc6a3bSJan Kneschke #ifndef _HTTP_CHUNK_H_
2bcdc6a3bSJan Kneschke #define _HTTP_CHUNK_H_
38abd06a7SGlenn Strauss #include "first.h"
4bcdc6a3bSJan Kneschke 
504d76e7aSGlenn Strauss #include "base_decls.h"
60fcd5143SGlenn Strauss #include "buffer.h"
70fcd5143SGlenn Strauss #include "chunk.h"
8bcdc6a3bSJan Kneschke 
9*9078cc4cSGlenn Strauss struct stat_cache_entry; /* declaration */
10*9078cc4cSGlenn Strauss 
117c7f8c46SGlenn Strauss int http_chunk_append_mem(request_st *r, const char * mem, size_t len); /* copies memory */
127c7f8c46SGlenn Strauss int http_chunk_append_buffer(request_st *r, buffer *mem); /* may reset "mem" */
137420526dSGlenn Strauss int http_chunk_decode_append_mem(request_st * const r, const char * const mem, const size_t len);
147420526dSGlenn Strauss int http_chunk_decode_append_buffer(request_st * const r, buffer * const mem); /* may reset "mem" */
157c7f8c46SGlenn Strauss int http_chunk_transfer_cqlen(request_st *r, chunkqueue *src, size_t len);
167c7f8c46SGlenn Strauss int http_chunk_append_file_fd(request_st *r, const buffer *fn, int fd, off_t sz);
17*9078cc4cSGlenn Strauss int http_chunk_append_file_ref(request_st *r, struct stat_cache_entry *sce); /* copies "fn" */
18e9912607SGlenn Strauss void http_chunk_append_file_fd_range(request_st *r, const buffer *fn, int fd, off_t offset, off_t len); /* copies "fn" */
19*9078cc4cSGlenn Strauss void http_chunk_append_file_ref_range(request_st *r, struct stat_cache_entry *sce, off_t offset, off_t len); /* copies "fn" */
207c7f8c46SGlenn Strauss void http_chunk_close(request_st *r);
21bcdc6a3bSJan Kneschke 
22bcdc6a3bSJan Kneschke #endif
23