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

Queue a reply with the given status code and a string body&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
WriteReply(
    xref:HTTPStatusCode.adoc[HTTPStatusCode] status,
    std::string&lowbar;view reply&lowbar;body&lowbar;view);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *status*
| The HTTP status code to send&period;
| *reply&lowbar;body&lowbar;view*
| The response body as a string view&period;
|===


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