Return whether the client request was a HEAD request.
| 252 | |
| 253 | // Return whether the client request was a HEAD request. |
| 254 | const char * |
| 255 | AuthRequestGetMethod(TSHttpTxn txn) |
| 256 | { |
| 257 | TSMBuffer mbuf; |
| 258 | TSMLoc mhdr; |
| 259 | int len; |
| 260 | const char *method; |
| 261 | |
| 262 | TSReleaseAssert(TSHttpTxnClientReqGet(txn, &mbuf, &mhdr) == TS_SUCCESS); |
| 263 | |
| 264 | method = TSHttpHdrMethodGet(mbuf, mhdr, &len); |
| 265 | TSHandleMLocRelease(mbuf, TS_NULL_MLOC, mhdr); |
| 266 | |
| 267 | return method; |
| 268 | } |
| 269 | |
| 270 | // Chain the response header hook to send the proxy's authorization response. |
| 271 | static void |
no test coverage detected