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

Method value_get

include/proxy/hdrs/MIME.h:1421–1432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1419 -------------------------------------------------------------------------*/
1420
1421inline const char *
1422MIMEHdr::value_get(const char *name, int name_length, int *value_length_return) const
1423{
1424 const MIMEField *field = field_find(name, name_length);
1425
1426 if (field) {
1427 auto value{field->value_get()};
1428 *value_length_return = static_cast<int>(value.length());
1429 return value.data();
1430 }
1431 return nullptr;
1432}
1433
1434inline std::string_view
1435MIMEHdr::value_get(std::string_view const &name) const

Callers 1

field_combine_dupsMethod · 0.45

Calls 3

lengthMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected