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

Set a header to be included in the response&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
WriteHeader(
    std::string&& hdr,
    std::string&& value);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hdr*
| The header field&hyphen;name to write&period;
| *value*
| The value to associate with the field&hyphen;name&period;
|===


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