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

Function StaticHitParseRequest

plugins/statichit/statichit.cc:354–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354static bool
355StaticHitParseRequest(StaticHitRequest *trq)
356{
357 const char *path;
358 int pathsz;
359
360 // Make sure this is a GET request
361 path = TSHttpHdrMethodGet(trq->rqheader.buffer, trq->rqheader.header, &pathsz);
362 if (path != TS_HTTP_METHOD_GET) {
363 VDEBUG("%.*s method is not supported", pathsz, path);
364 return false;
365 }
366
367 return true;
368}
369
370// Handle events from TSHttpTxnServerIntercept. The intercept
371// starts with TS_EVENT_NET_ACCEPT, and then continues with

Callers 1

StaticHitInterceptHookFunction · 0.85

Calls 1

TSHttpHdrMethodGetFunction · 0.85

Tested by

no test coverage detected