| 692 | -------------------------------------------------------------------------*/ |
| 693 | |
| 694 | const char * |
| 695 | http_hdr_method_get(HTTPHdrImpl *hh, int *length) |
| 696 | { |
| 697 | const char *str; |
| 698 | |
| 699 | ink_assert(hh->m_polarity == HTTP_TYPE_REQUEST); |
| 700 | |
| 701 | if (hh->u.req.m_method_wks_idx >= 0) { |
| 702 | str = hdrtoken_index_to_wks(hh->u.req.m_method_wks_idx); |
| 703 | *length = hdrtoken_index_to_length(hh->u.req.m_method_wks_idx); |
| 704 | } else { |
| 705 | str = hh->u.req.m_ptr_method; |
| 706 | *length = hh->u.req.m_len_method; |
| 707 | } |
| 708 | |
| 709 | return (str); |
| 710 | } |
| 711 | |
| 712 | /*------------------------------------------------------------------------- |
| 713 | -------------------------------------------------------------------------*/ |
no test coverage detected