| 2911 | } |
| 2912 | |
| 2913 | const char * |
| 2914 | TSHttpHdrReasonGet(TSMBuffer bufp, TSMLoc obj, int *length) |
| 2915 | { |
| 2916 | sdk_assert(sdk_sanity_check_mbuffer(bufp) == TS_SUCCESS); |
| 2917 | sdk_assert(sdk_sanity_check_http_hdr_handle(obj) == TS_SUCCESS); |
| 2918 | sdk_assert(sdk_sanity_check_null_ptr((void *)length) == TS_SUCCESS); |
| 2919 | |
| 2920 | HTTPHdr h; |
| 2921 | |
| 2922 | SET_HTTP_HDR(h, bufp, obj); |
| 2923 | return h.reason_get(length); |
| 2924 | } |
| 2925 | |
| 2926 | TSReturnCode |
| 2927 | TSHttpHdrReasonSet(TSMBuffer bufp, TSMLoc obj, const char *value, int length) |