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

Function AuthRequestGetMethod

plugins/authproxy/authproxy.cc:254–268  ·  view source on GitHub ↗

Return whether the client request was a HEAD request.

Source from the content-addressed store, hash-verified

252
253// Return whether the client request was a HEAD request.
254const char *
255AuthRequestGetMethod(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.
271static void

Callers 1

StateAuthProxyConnectFunction · 0.85

Calls 3

TSHttpTxnClientReqGetFunction · 0.85
TSHttpHdrMethodGetFunction · 0.85
TSHandleMLocReleaseFunction · 0.85

Tested by

no test coverage detected