MCPcopy Create free account
hub / github.com/apache/trafficserver / TSHttpHdrReasonGet

Function TSHttpHdrReasonGet

src/api/InkAPI.cc:2913–2924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2911}
2912
2913const char *
2914TSHttpHdrReasonGet(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
2926TSReturnCode
2927TSHttpHdrReasonSet(TSMBuffer bufp, TSMLoc obj, const char *value, int length)

Callers 5

getReasonPhraseMethod · 0.85
getPropertyMethod · 0.85
reasonMethod · 0.85

Calls 4

sdk_sanity_check_mbufferFunction · 0.85
reason_getMethod · 0.80

Tested by 1