| 7836 | } |
| 7837 | |
| 7838 | void |
| 7839 | HttpSM::dump_state_hdr(HTTPHdr *h, const char *s) |
| 7840 | { |
| 7841 | // Dump the client request if available |
| 7842 | if (h->valid()) { |
| 7843 | int l = h->length_get(); |
| 7844 | char *hdr_buf = static_cast<char *>(ats_malloc(l + 1)); |
| 7845 | int index = 0; |
| 7846 | int offset = 0; |
| 7847 | |
| 7848 | h->print(hdr_buf, l, &index, &offset); |
| 7849 | |
| 7850 | hdr_buf[l] = '\0'; |
| 7851 | Error(" ---- %s [%" PRId64 "] ----\n%s\n", s, sm_id, hdr_buf); |
| 7852 | ats_free(hdr_buf); |
| 7853 | } |
| 7854 | } |
| 7855 | |
| 7856 | /***************************************************************************** |
| 7857 | ***************************************************************************** |
nothing calls this directly
no test coverage detected