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

Name

Description

res

The response status line and headers.

reply_body

The response body bytes.

keep_alive

Whether to keep the connection open after sending.

Created with MrDocs