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

Function http_hdr_method_set

src/proxy/hdrs/HTTP.cc:715–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713 -------------------------------------------------------------------------*/
714
715void
716http_hdr_method_set(HdrHeap *heap, HTTPHdrImpl *hh, const char *method, int16_t method_wks_idx, int method_length, bool must_copy)
717{
718 ink_assert(hh->m_polarity == HTTP_TYPE_REQUEST);
719
720 hh->u.req.m_method_wks_idx = method_wks_idx;
721 mime_str_u16_set(heap, method, method_length, &(hh->u.req.m_ptr_method), &(hh->u.req.m_len_method), must_copy);
722}
723
724/*-------------------------------------------------------------------------
725 -------------------------------------------------------------------------*/

Callers 2

http_parser_parse_reqFunction · 0.85
method_setMethod · 0.85

Calls 1

mime_str_u16_setFunction · 0.85

Tested by

no test coverage detected