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

Method Request

plugins/multiplexer/dispatch.cc:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38size_t timeout;
39
40Request::Request(const std::string &h, const TSMBuffer b, const TSMLoc l) : host(h), length(0), io(new ats::io::IO())
41{
42 assert(!host.empty());
43 assert(b != nullptr);
44 assert(l != nullptr);
45 assert(io.get() != nullptr);
46 TSHttpHdrPrint(b, l, io->buffer);
47 length = TSIOBufferReaderAvail(io->reader);
48 assert(length > 0);
49 /*
50 * TSHttpHdrLengthGet returns the size with possible "internal" headers
51 * which are not printed by TSHttpHdrPrint.
52 * Therefore the greater than or equal comparison
53 */
54 assert(TSHttpHdrLengthGet(b, l) >= length);
55}
56
57Request::Request(Request &&that) : host(std::move(that.host)), length(that.length), io(std::move(that.io))
58{

Callers

nothing calls this directly

Calls 5

TSHttpHdrPrintFunction · 0.85
TSIOBufferReaderAvailFunction · 0.85
TSHttpHdrLengthGetFunction · 0.85
emptyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected