http-server-request.c revision 3fcb3d2d1f3583025ff62bae95ec706920f398b1
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi/* Copyright (c) 2013-2014 Dovecot authors, see the included COPYING file */
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomihttp_server_request_new(struct http_server_connection *conn)
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi pool = pool_alloconly_create("http_message", 4096);
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi DLLIST2_APPEND(&conn->request_queue_head, &conn->request_queue_tail, req);
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomivoid http_server_request_ref(struct http_server_request *req)
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomivoid http_server_request_unref(struct http_server_request **_req)
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi if (req->state < HTTP_SERVER_REQUEST_STATE_FINISHED) {
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi DLLIST2_REMOVE(&conn->request_queue_head, &conn->request_queue_tail, req);
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomivoid http_server_request_set_destroy_callback(struct http_server_request *req,
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi void (*callback)(void *),
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomivoid http_server_request_abort(struct http_server_request **_req)
const struct http_request *
i_unreached();