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

Method field_create

include/proxy/hdrs/MIME.h:1293–1304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1291 -------------------------------------------------------------------------*/
1292
1293inline MIMEField *
1294MIMEHdr::field_create(const char *name, int length)
1295{
1296 MIMEField *field = mime_field_create(m_heap, m_mime);
1297
1298 if (name) {
1299 int field_name_wks_idx = hdrtoken_tokenize(name, length);
1300 mime_field_name_set(m_heap, m_mime, field, field_name_wks_idx, name, length, true);
1301 }
1302
1303 return field;
1304}
1305
1306/*-------------------------------------------------------------------------
1307 -------------------------------------------------------------------------*/

Calls 3

mime_field_createFunction · 0.85
hdrtoken_tokenizeFunction · 0.85
mime_field_name_setFunction · 0.85

Tested by 4

test_decodingFunction · 0.36
test_encodingFunction · 0.36
load_qif_fileFunction · 0.36
add_field_value_to_hdrFunction · 0.36