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

Function HttpGetContentLength

plugins/authproxy/utils.cc:104–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104unsigned
105HttpGetContentLength(TSMBuffer mbuf, TSMLoc mhdr)
106{
107 TSMLoc mloc;
108 unsigned value = 0;
109
110 mloc = TSMimeHdrFieldFind(mbuf, mhdr, TS_MIME_FIELD_CONTENT_LENGTH, -1);
111 if (mloc != TS_NULL_MLOC) {
112 value = TSMimeHdrFieldValueUintGet(mbuf, mhdr, mloc, 0 /* index */);
113 }
114
115 TSHandleMLocRelease(mbuf, mhdr, mloc);
116 return value;
117}
118
119bool
120HttpIsChunkedEncoding(TSMBuffer mbuf, TSMLoc mhdr)

Callers 3

Calls 3

TSMimeHdrFieldFindFunction · 0.85
TSHandleMLocReleaseFunction · 0.85

Tested by

no test coverage detected