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

Function AuthChainAuthorizationResponse

plugins/authproxy/authproxy.cc:271–281  ·  view source on GitHub ↗

Chain the response header hook to send the proxy's authorization response.

Source from the content-addressed store, hash-verified

269
270// Chain the response header hook to send the proxy's authorization response.
271static void
272AuthChainAuthorizationResponse(AuthRequestContext *auth)
273{
274 if (auth->vconn) {
275 TSVConnClose(auth->vconn);
276 auth->vconn = nullptr;
277 }
278
279 TSHttpTxnHookAdd(auth->txn, TS_HTTP_SEND_RESPONSE_HDR_HOOK, auth->cont);
280 TSHttpTxnReenable(auth->txn, TS_EVENT_HTTP_ERROR);
281}
282
283// Transform the client request into a HEAD request and write it out.
284static bool

Callers 3

Calls 3

TSVConnCloseFunction · 0.85
TSHttpTxnHookAddFunction · 0.85
TSHttpTxnReenableFunction · 0.85

Tested by

no test coverage detected