}
activeRequest = r;
- state = STATE_IDLE;
+ state = STATE_SENT_REQUEST;
bodyTransferSize = -1;
chunkedTransfer = false;
setTerminator("\r\n");
virtual void foundTerminator(void)
{
switch (state) {
- case STATE_IDLE:
+ case STATE_SENT_REQUEST:
activeRequest->responseStart(buffer);
state = STATE_GETTING_HEADERS;
buffer.clear();
state = STATE_GETTING_CHUNKED;
break;
+
case STATE_GETTING_TRAILER:
processTrailer();
buffer.clear();
enum ConnectionState {
STATE_IDLE = 0,
+ STATE_SENT_REQUEST,
STATE_GETTING_HEADERS,
STATE_GETTING_BODY,
STATE_GETTING_CHUNKED,