shukitchan commented on issue #8748: URL: https://github.com/apache/trafficserver/issues/8748#issuecomment-1309572578
It is because we simply consume the data - https://github.com/apache/trafficserver/blob/master/plugins/lua/ts_lua_http_intercept.c#L284 Unlike in C++ Plugin, the data is consumed and parsed - https://github.com/apache/trafficserver/blob/master/src/tscpp/api/InterceptPlugin.cc#L197 To support this, we probably need to re-arrange the sequence of things that should happened. The body (and perhaps header) need to be offered to the handler function and thus we need to read and consume the data first before trigger the lua handler function. Right now the function is triggered right away. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
