Share via


http_headers::has Method

Checks if there is a header with the given key.

bool has(
   const key_type& name
) const;

Parameters

  • name
    The name of the header field.

Return Value

true if there is a header with the given name, false otherwise.

Requirements

Header: http_msg.h

Namespace: web::http

See Also

Reference

http_headers Class