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

Method set_request_line

src/iocore/net/OCSPStapling.cc:318–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316 }
317
318 void
319 set_request_line(bool use_get, const char *uri)
320 {
321 struct sockaddr_in sin;
322 memset(&sin, 0, sizeof(sin));
323 sin.sin_family = AF_INET;
324 sin.sin_addr.s_addr = inet_addr("127.0.0.1");
325 sin.sin_port = 65535;
326
327 this->_fsm = FetchSMAllocator.alloc();
328 this->_fsm->ext_init(this, use_get ? "GET" : "POST", uri, "HTTP/1.1", reinterpret_cast<sockaddr *>(&sin),
329 TS_FETCH_FLAGS_SKIP_REMAP);
330 }
331
332 int
333 set_body(const char *content_type, const ASN1_ITEM *it, const ASN1_VALUE *req)

Callers 1

query_responderFunction · 0.80

Calls 3

memsetFunction · 0.85
allocMethod · 0.45
ext_initMethod · 0.45

Tested by

no test coverage detected