aboutsummaryrefslogtreecommitdiff
path: root/src/lib/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/internal.h')
-rw-r--r--src/lib/internal.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/lib/internal.h b/src/lib/internal.h
index f03e101e..b4c471dd 100644
--- a/src/lib/internal.h
+++ b/src/lib/internal.h
@@ -209,8 +209,8 @@ typedef ssize_t
209 * not have to be completed yet). A transition to 209 * not have to be completed yet). A transition to
210 * #MHD_REQUEST_CLOSED or #MHD_REQUEST_INIT requires the write 210 * #MHD_REQUEST_CLOSED or #MHD_REQUEST_INIT requires the write
211 * to be complete. 211 * to be complete.
212 */ 212 */
213enum MHD_REQUEST_STATE 213enum MHD_REQUEST_STATE // FIXME: fix capitalization!
214{ 214{
215 /** 215 /**
216 * Request just started (no headers received). 216 * Request just started (no headers received).
@@ -422,16 +422,6 @@ struct MHD_Request
422 struct MHD_HTTP_Header *headers_received_tail; 422 struct MHD_HTTP_Header *headers_received_tail;
423 423
424 /** 424 /**
425 * The memory pool is created whenever we first read from the TCP
426 * stream and destroyed at the end of each request (and re-created
427 * for the next request). In the meantime, this pointer is NULL.
428 * The pool is used for all request-related data except for the
429 * response (which maybe shared between requests) and the IP
430 * address (which persists across individual requests).
431 */
432 struct MemoryPool *pool; // FIXME: keep with connnection!
433
434 /**
435 * We allow the main application to associate some pointer with the 425 * We allow the main application to associate some pointer with the
436 * HTTP request, which is passed to each #MHD_AccessHandlerCallback 426 * HTTP request, which is passed to each #MHD_AccessHandlerCallback
437 * and some other API calls. Here is where we store it. (MHD does 427 * and some other API calls. Here is where we store it. (MHD does
@@ -567,7 +557,8 @@ struct MHD_Request
567 */ 557 */
568 uint64_t response_write_position; 558 uint64_t response_write_position;
569 559
570#if defined(_MHD_HAVE_SENDFILE) 560 #if defined(_MHD_HAVE_SENDFILE)
561 // FIXME: document, fix capitalization!
571 enum MHD_resp_sender_ 562 enum MHD_resp_sender_
572 { 563 {
573 MHD_resp_sender_std = 0, 564 MHD_resp_sender_std = 0,
@@ -713,6 +704,16 @@ struct MHD_Connection
713 * Reference to the MHD_Daemon struct. 704 * Reference to the MHD_Daemon struct.
714 */ 705 */
715 struct MHD_Daemon *daemon; 706 struct MHD_Daemon *daemon;
707
708 /**
709 * The memory pool is created whenever we first read from the TCP
710 * stream and destroyed at the end of each request (and re-created
711 * for the next request). In the meantime, this pointer is NULL.
712 * The pool is used for all request-related data except for the
713 * response (which maybe shared between requests) and the IP
714 * address (which persists across individual requests).
715 */
716 struct MemoryPool *pool;
716 717
717 /** 718 /**
718 * We allow the main application to associate some pointer with the 719 * We allow the main application to associate some pointer with the