共用方式為


http_headers::match 方法

使用 '>>' 運算子,嘗試比對含有指定名稱的標頭欄位。

template<
   typename _t1
>
bool match(
   const key_type &name,
   _t1 &value
) const;

參數

  • _t1

  • name
    標頭欄位的名稱。

  • value
    標頭欄位的值。

傳回值

如果找到標頭欄位並成功儲存在參數中,則為 true

需求

**標頭:**http_msg.h

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

請參閱

參考

http_headers 類別