Http response that will be sent to a client. More...
#include <HttpServer.h>
Public Member Functions | |
ArenaMapKey< HttpServerClient > | getClientKey () const |
Result | startResponse (int httpCode) |
Starts the response with a http standard code (200 OK, 404 NOT FOUND etc.) | |
Result | addHeader (StringView headerName, StringView headerValue) |
Writes an http header to this response. | |
Result | write (Span< const char > data) |
Appends some data to the response. | |
Result | end (Span< const char > data) |
Finalizes response appending some data. | |
HttpServer & | getServer () |
Friends | |
struct | HttpServer |
Http response that will be sent to a client.
|
nodiscard |
Writes an http header to this response.
Finalizes response appending some data.
|
nodiscard |
Starts the response with a http standard code (200 OK, 404 NOT FOUND etc.)
Appends some data to the response.