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

Function generateRequests

plugins/multiplexer/dispatch.cc:215–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213};
214
215void
216generateRequests(const Origins &o, const TSMBuffer buffer, const TSMLoc location, Requests &r)
217{
218 assert(!o.empty());
219 assert(buffer != nullptr);
220 assert(location != nullptr);
221
222 Origins::const_iterator iterator = o.begin();
223 const Origins::const_iterator end = o.end();
224
225 OriginalRequest request(buffer, location);
226 request.urlScheme("");
227 request.urlHost("");
228 request.xMultiplexerHeader("copy");
229
230 for (; iterator != end; ++iterator) {
231 const std::string &host = *iterator;
232 assert(!host.empty());
233 request.hostHeader(host);
234 Dbg(dbg_ctl, "Preparing request for \"%s\"", host.c_str());
235 r.push_back(Request(host, buffer, location));
236 }
237}
238
239void
240addBody(Requests &r, const TSIOBufferReader re)

Callers 1

DoRemapFunction · 0.85

Calls 10

urlSchemeMethod · 0.80
urlHostMethod · 0.80
xMultiplexerHeaderMethod · 0.80
hostHeaderMethod · 0.80
RequestClass · 0.70
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected