DOKK / manpages / debian 10 / trafficserver-dev / TSMimeHdrFieldGet.3ts.en
TSMIMEHDRFIELDGET(3ts) Apache Traffic Server TSMIMEHDRFIELDGET(3ts)

TSMimeHdrFieldGet - TSMimeHdrFieldGet API function

#include <ts/ts.h>


Retrieves the location of a specified MIME field within the MIME header located at hdr_loc within bufp.

The idx parameter specifies which field to retrieve. The fields are numbered from 0 to TSMimeHdrFieldsCount(bufp, hdr_loc) - 1. If idx does not lie within that range then TSMimeHdrFieldGet returns 0. Release the returned handle with a call to TSHandleMLocRelease.

2022, dev@trafficserver.apache.org

May 21, 2022 8.0