| 2782 | } |
| 2783 | |
| 2784 | const char * |
| 2785 | TSHttpHdrMethodGet(TSMBuffer bufp, TSMLoc obj, int *length) |
| 2786 | { |
| 2787 | sdk_assert(sdk_sanity_check_mbuffer(bufp) == TS_SUCCESS); |
| 2788 | sdk_assert(sdk_sanity_check_http_hdr_handle(obj) == TS_SUCCESS); |
| 2789 | sdk_assert(sdk_sanity_check_null_ptr((void *)length) == TS_SUCCESS); |
| 2790 | |
| 2791 | HTTPHdr h; |
| 2792 | |
| 2793 | SET_HTTP_HDR(h, bufp, obj); |
| 2794 | return h.method_get(length); |
| 2795 | } |
| 2796 | |
| 2797 | TSReturnCode |
| 2798 | TSHttpHdrMethodSet(TSMBuffer bufp, TSMLoc obj, const char *value, int length) |