| 553 | } |
| 554 | |
| 555 | TSReturnCode |
| 556 | TSRemapInit(TSRemapInterface * /* api_info */, char * /* errbuf */, int /* errbuf_size */) |
| 557 | { |
| 558 | if (TSStatFindName("stats_over_http2.response_bytes", &StatCountBytes) == TS_ERROR) { |
| 559 | StatCountBytes = |
| 560 | TSStatCreate("stats_over_http2.response_bytes", TS_RECORDDATATYPE_COUNTER, TS_STAT_NON_PERSISTENT, TS_STAT_SYNC_SUM); |
| 561 | } |
| 562 | |
| 563 | if (TSStatFindName("stats_over_http2.response_count", &StatCountResponses) == TS_ERROR) { |
| 564 | StatCountResponses = |
| 565 | TSStatCreate("stats_over_http2.response_count", TS_RECORDDATATYPE_COUNTER, TS_STAT_NON_PERSISTENT, TS_STAT_SYNC_COUNT); |
| 566 | } |
| 567 | return TS_SUCCESS; |
| 568 | } |
| 569 | |
| 570 | TSRemapStatus |
| 571 | TSRemapDoRemap(void *ih, TSHttpTxn rh, TSRemapRequestInfo * /* rri ATS_UNUSED */) |
nothing calls this directly
no test coverage detected