Update http_ctx->server_response_hdrp if there. This is required in the beginning of toughing response, because holding old pointer could be freed by core. */
| 51 | This is required in the beginning of toughing response, because holding old pointer could be freed by core. |
| 52 | */ |
| 53 | void |
| 54 | ts_lua_update_server_response_hdrp(ts_lua_http_ctx *http_ctx) |
| 55 | { |
| 56 | if (http_ctx->server_response_hdrp) { |
| 57 | if (TSHttpTxnServerRespGet(http_ctx->txnp, &http_ctx->server_response_bufp, &http_ctx->server_response_hdrp) != TS_SUCCESS) { |
| 58 | TSError("[ts_lua][%s] failed to get server response", __FUNCTION__); |
| 59 | return; |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | void |
| 65 | ts_lua_clear_http_ctx(ts_lua_http_ctx *http_ctx) |
no test coverage detected