| 352 | } |
| 353 | |
| 354 | static bool |
| 355 | StaticHitParseRequest(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 |
no test coverage detected