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

Method getContent

plugins/esi/test/TestHttpDataFetcher.h:58–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 };
57
58 bool
59 getContent(const std::string &url, const char *&content, int &content_len) const override
60 {
61 TestHttpDataFetcher &curr_obj = const_cast<TestHttpDataFetcher &>(*this);
62 --curr_obj._n_pending_requests;
63 if (_return_data) {
64 curr_obj._data.clear();
65 curr_obj._data.append(">>>>> Content for URL [");
66 curr_obj._data.append(url);
67 curr_obj._data.append("] <<<<<");
68 content = curr_obj._data.data();
69 content_len = curr_obj._data.size();
70 return true;
71 }
72 return false;
73 }
74
75 void
76 setReturnData(bool rd)

Callers 1

processor_test.ccFile · 0.45

Calls 4

clearMethod · 0.45
appendMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected