共用方式為


http_headers::add 方法

使用 '<<' 運算子,加入標頭欄位。

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
);

參數

  • _t1

  • name
    標頭欄位的名稱。

  • value
    標頭欄位的值。

需求

**標頭:**http_msg.h

**命名空間:**web::http

請參閱

參考

http_headers 類別