[#HTTPRequest-GetHeader]
= xref:HTTPRequest.adoc[HTTPRequest]::GetHeader
:relfileprefix: ../
:mrdocs:

Look up a request header value&period;

== Synopsis

Declared in `&lt;httpserver&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;std::string&gt;
GetHeader(std::string&lowbar;view hdr) const;
----

== Return Value

The header value, or nullopt if it is not present&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hdr*
| The header field&hyphen;name to look up&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
