/* vanilla url, implicit method */
unsigned short expected_port;
SBuf url("http://foo:90/bar");
- const MasterXaction::Pointer mx = new MasterXaction(XactionInitiator::initClient);
+ const auto mx = MasterXaction::MakePortless<XactionInitiator::initHtcp>();
HttpRequest *aRequest = HttpRequest::FromUrl(url, mx);
expected_port = 90;
CPPUNIT_ASSERT(aRequest != nullptr);
/* valid IPv6 address without port */
SBuf url("http://[2000:800::45]/foo");
- const MasterXaction::Pointer mx = new MasterXaction(XactionInitiator::initClient);
+ const auto mx = MasterXaction::MakePortless<XactionInitiator::initHtcp>();
aRequest = HttpRequest::FromUrl(url, mx, Http::METHOD_GET);
expected_port = 80;
CPPUNIT_ASSERT_EQUAL(expected_port, aRequest->url.port());
testHttpRequest::testSanityCheckStartLine()
{
MemBuf input;
- const MasterXaction::Pointer mx = new MasterXaction(XactionInitiator::initClient);
+ const auto mx = MasterXaction::MakePortless<XactionInitiator::initHtcp>();
PrivateHttpRequest engine(mx);
Http::StatusCode error = Http::scNone;
size_t hdr_len;