HTTPRemoteClient::Send

Queue a response to be written to the client's socket.

Synopsis

Declared in <httpserver.h>

[[requires_capability(0x7f2e3ab48768, 0x7f2e3ab48828)]]
void
Send(
    HTTPResponse const& res,
    std::span<std::byte const> reply_body,
    bool keep_alive);

Parameters

NameDescription
resThe response status line and headers.
reply_bodyThe response body bytes.
keep_aliveWhether to keep the connection open after sending.