it in urlParse().
/*
- * $Id: HttpRequest.cc,v 1.57 2006/01/19 18:40:28 wessels Exp $
+ * $Id: HttpRequest.cc,v 1.58 2006/01/19 18:50:36 wessels Exp $
*
* DEBUG: section 73 HTTP Request
* AUTHOR: Duane Wessels
HttpRequest::HttpRequest(method_t aMethod, protocol_t aProtocol, const char *aUrlpath) : HttpMsg(hoRequest),link_count(0)
{
init();
- initXX(aMethod, aProtocol, aUrlpath);
+ initHTTP(aMethod, aProtocol, aUrlpath);
}
HttpRequest::~HttpRequest()
}
void
-HttpRequest::initXX(method_t aMethod, protocol_t aProtocol, const char *aUrlpath)
+HttpRequest::initHTTP(method_t aMethod, protocol_t aProtocol, const char *aUrlpath)
{
method = aMethod;
protocol = aProtocol;
/*
- * $Id: HttpRequest.h,v 1.16 2006/01/19 18:40:28 wessels Exp $
+ * $Id: HttpRequest.h,v 1.17 2006/01/19 18:50:36 wessels Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
HttpRequest(method_t aMethod, protocol_t aProtocol, const char *aUrlpath);
~HttpRequest();
virtual void reset();
+ void initHTTP(method_t aMethod, protocol_t aProtocol, const char *aUrlpath);
protected:
- void initXX(method_t aMethod, protocol_t aProtocol, const char *aUrlpath);
void clean();
void init();
/*
- * $Id: url.cc,v 1.149 2006/01/19 18:40:28 wessels Exp $
+ * $Id: url.cc,v 1.150 2006/01/19 18:50:36 wessels Exp $
*
* DEBUG: section 23 URL Parsing
* AUTHOR: Duane Wessels
if (NULL == request)
request = new HttpRequest(method, protocol, urlpath);
else {
- request->method = method;
- request->protocol = protocol;
- request->urlpath = urlpath;
+ request->initHTTP(method, protocol, urlpath);
}
xstrncpy(request->host, host, SQUIDHOSTNAMELEN);