// XXX: crop this dump at the end of headers. No need for extras
debugs(11, 2, "HTTP Client " << csd->clientConnection);
- debugs(11, 2, "HTTP Client REQUEST:\n---------\n" << (hp->buf) + hp->req.m_start << "\n----------");
+ debugs(11, 2, "HTTP Client REQUEST:\n---------\n" <<
+ hp->method() << " " << hp->requestUri() << " " << hp->messageProtocol() << "\n" <<
+ hp->rawHeaderBuf() <<
+ "\n----------");
result->flags.parsed_ok = 1;
return result;
const char *buf;
int bufsiz;
- /// Offsets for pieces of the (HTTP request) Request-Line as per RFC 2616
- struct request_offsets {
- int start, end;
- int m_start, m_end; // method
- int u_start, u_end; // url
- int v_start, v_end; // version (full text)
- } req;
-
/// the protocol label for this message
const AnyP::ProtocolVersion & messageProtocol() const {return msgProtocol_;}
bool skipGarbageLines();
int parseRequestFirstLine();
+ /// Offsets for pieces of the (HTTP request) Request-Line as per RFC 2616
+ struct request_offsets {
+ int start, end;
+ int m_start, m_end; // method
+ int u_start, u_end; // url
+ int v_start, v_end; // version (full text)
+ } req;
+
/// byte offset for non-parsed region of the buffer
size_t parseOffset_;