Share via


http_headers::match Method

Attempts to match a header field with the given name using the '>>' operator.

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

Parameters

  • _t1

  • name
    The name of the header field.

  • value
    The value of the header field.

Return Value

true if header field was found and successfully stored in value parameter.

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

http_headers Class