* Process headers after request line
* TODO: Use httpRequestParse here.
*/
- /* XXX this code should be modified to take a const char * later! */
- req_hdr = (char *) hp->buf + hp->req.end + 1;
-
- debugs(33, 3, "parseHttpRequest: req_hdr = {" << req_hdr << "}");
-
- end = (char *) hp->buf + hp->hdr_end;
-
- debugs(33, 3, "parseHttpRequest: end = {" << end << "}");
-
- debugs(33, 3, "parseHttpRequest: prefix_sz = " <<
- (int) HttpParserRequestLen(hp) << ", req_line_sz = " <<
- HttpParserReqSz(hp));
+ debugs(33, 3, Raw("req_hdr", hp.rawHeaderBuf(), hp.headerBlockSize()));
+ debugs(33, 3, "prefix_sz = " << hp.messageHeaderSize() <<
+ ", request-line-size=" << hp.firstLineSize() <<
+ ", mime-header-size=" << hp.headerBlockSize());
/* Ok, all headers are received */
- http = new ClientHttpRequest(csd);
+ ClientHttpRequest *http = new ClientHttpRequest(csd);
+
+ http->req_sz = hp.messageHeaderSize();
- ClientSocketContext *result = ClientSocketContextNew(csd->clientConnection, http);
++ ClientSocketContext *result = new ClientSocketContext(csd->clientConnection, http);
- http->req_sz = HttpParserRequestLen(hp);
- result = new ClientSocketContext(csd->clientConnection, http);
+ StoreIOBuffer tempBuffer;
tempBuffer.data = result->reqbuf;
tempBuffer.length = HTTP_REQBUF_SZ;