Lines Matching refs:con
23 static int http_chunk_append_len(server *srv, connection *con, size_t len) { in http_chunk_append_len() argument
48 chunkqueue_append_buffer(con->write_queue, b); in http_chunk_append_len()
54 int http_chunk_append_file(server *srv, connection *con, buffer *fn, off_t offset, off_t len) { in http_chunk_append_file() argument
57 if (!con) return -1; in http_chunk_append_file()
59 cq = con->write_queue; in http_chunk_append_file()
61 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED) { in http_chunk_append_file()
62 http_chunk_append_len(srv, con, len); in http_chunk_append_file()
67 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED && len > 0) { in http_chunk_append_file()
74 int http_chunk_append_buffer(server *srv, connection *con, buffer *mem) { in http_chunk_append_buffer() argument
77 if (!con) return -1; in http_chunk_append_buffer()
79 cq = con->write_queue; in http_chunk_append_buffer()
81 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED) { in http_chunk_append_buffer()
82 http_chunk_append_len(srv, con, mem->used - 1); in http_chunk_append_buffer()
87 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED && mem->used > 0) { in http_chunk_append_buffer()
94 int http_chunk_append_mem(server *srv, connection *con, const char * mem, size_t len) { in http_chunk_append_mem() argument
97 if (!con) return -1; in http_chunk_append_mem()
99 cq = con->write_queue; in http_chunk_append_mem()
102 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED) { in http_chunk_append_mem()
110 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED) { in http_chunk_append_mem()
111 http_chunk_append_len(srv, con, len - 1); in http_chunk_append_mem()
116 if (con->response.transfer_encoding & HTTP_TRANSFER_ENCODING_CHUNKED) { in http_chunk_append_mem()
124 off_t http_chunkqueue_length(server *srv, connection *con) { in http_chunkqueue_length() argument
125 if (!con) { in http_chunkqueue_length()
131 return chunkqueue_length(con->write_queue); in http_chunkqueue_length()