Share via


http_headers::add Method

Adds a header field using the '<<' operator.

template<
   typename _t1
>
void add(
   const key_type& name,
   const _t1& value
);

void add(
   const key_type& name,
   utility::string_t value
);

void add(
   const key_type& name,
   const utility::char_t* const value
);

Parameters

  • _t1

  • name
    The name of the header field.

  • value
    The value of the header field.

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

http_headers Class