[#HTTPRequest-WriteReply-06] = xref:HTTPRequest.adoc[HTTPRequest]::WriteReply :relfileprefix: ../ :mrdocs: `WriteReply` overloads == Synopses Declared in `<httpserver.h>` Queue a reply with the given status code and a string body. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:HTTPRequest/WriteReply-08.adoc[WriteReply]( xref:HTTPStatusCode.adoc[HTTPStatusCode] status, std::string_view reply_body_view); ---- [.small]#xref:HTTPRequest/WriteReply-08.adoc[_» more..._]# Queue a reply with the given status code and body to be sent to the client. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:HTTPRequest/WriteReply-0e.adoc[WriteReply]( xref:HTTPStatusCode.adoc[HTTPStatusCode] status, std::span<std::byte const> reply_body = {}); ---- [.small]#xref:HTTPRequest/WriteReply-0e.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *status* | The HTTP status code to send. | *reply_body_view* | The response body as a string view. | *reply_body* | The response body bytes; empty for a status‐only reply. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#