MCPcopy Create free account
hub / github.com/apache/trafficserver / br

Function br

src/proxy/ParentSelection.cc:1889–1901  ·  view source on GitHub ↗

br creates an HttpRequestData object

Source from the content-addressed store, hash-verified

1887
1888// br creates an HttpRequestData object
1889void
1890br(HttpRequestData *h, const char *os_hostname, sockaddr const *dest_ip)
1891{
1892 h->hdr = new HTTPHdr();
1893 h->hdr->create(HTTP_TYPE_REQUEST);
1894 h->hostname_str = ats_strdup(os_hostname);
1895 h->xact_start = time(nullptr);
1896 ink_zero(h->src_ip);
1897 ink_zero(h->dest_ip);
1898 ats_ip_copy(&h->dest_ip.sa, dest_ip);
1899 h->incoming_port = 80;
1900 h->api_info = new HttpApiInfo();
1901}
1902
1903// show_result prints out the ParentResult information
1904void

Calls 3

ink_zeroFunction · 0.85
ats_ip_copyFunction · 0.85
createMethod · 0.45

Tested by

no test coverage detected