http_headers::find 方法
檢查具有指定名稱的標頭欄位是否存在,如果找到則傳回迭代器。 否則傳回迭代器結束。
iterator find(
const key_type &name
);
const_iterator find(
const key_type &name
) const;
參數
- name
標頭欄位的名稱。
傳回值
找到 HTTP 標頭所在之處的迭代器
需求
**標頭:**http_msg.h
**命名空間:**web::http
檢查具有指定名稱的標頭欄位是否存在,如果找到則傳回迭代器。 否則傳回迭代器結束。
iterator find(
const key_type &name
);
const_iterator find(
const key_type &name
) const;
找到 HTTP 標頭所在之處的迭代器
**標頭:**http_msg.h
**命名空間:**web::http