diff options
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r-- | src/microhttpd/internal.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index ca317748..5154dc38 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -622,15 +622,22 @@ enum MHD_CONNECTION_STATE | |||
622 | 622 | ||
623 | /** | 623 | /** |
624 | * We received the entire request. | 624 | * We received the entire request. |
625 | * Wait for a response to be queued and prepare the response headers. | 625 | * Wait for a response to be queued. |
626 | */ | 626 | */ |
627 | MHD_CONNECTION_FULL_REQ_RECEIVED = MHD_CONNECTION_FOOTERS_RECEIVED + 1, | 627 | MHD_CONNECTION_FULL_REQ_RECEIVED = MHD_CONNECTION_FOOTERS_RECEIVED + 1, |
628 | 628 | ||
629 | /** | 629 | /** |
630 | * We have prepared the response headers in the writ buffer. | 630 | * Finished reading of the request and the response is ready. |
631 | * Switch internal logic from receiving to sending, prepare connection | ||
632 | * sending the reply and build the reply header. | ||
633 | */ | ||
634 | MHD_CONNECTION_START_REPLY = MHD_CONNECTION_FULL_REQ_RECEIVED + 1, | ||
635 | |||
636 | /** | ||
637 | * We have prepared the response headers in the write buffer. | ||
631 | * Send the response headers. | 638 | * Send the response headers. |
632 | */ | 639 | */ |
633 | MHD_CONNECTION_HEADERS_SENDING = MHD_CONNECTION_FULL_REQ_RECEIVED + 1, | 640 | MHD_CONNECTION_HEADERS_SENDING = MHD_CONNECTION_START_REPLY + 1, |
634 | 641 | ||
635 | /** | 642 | /** |
636 | * We have sent the response headers. Get ready to send the body. | 643 | * We have sent the response headers. Get ready to send the body. |