HTTPRequest::WriteReply

Queue a reply with the given status code and a string body.

Synopsis

Declared in <httpserver.h>

void
WriteReply(
    HTTPStatusCode status,
    std::string_view reply_body_view);

Parameters

NameDescription
statusThe HTTP status code to send.
reply_body_viewThe response body as a string view.