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.) More... | |
Result | addHeader (StringView headerName, StringView headerValue) |
Writes an http header to this response. More... | |
Result | write (Span< const char > data) |
Appends some data to the response. More... | |
Result | end (Span< const char > data) |
Finalizes response appending some data. More... | |
HttpServer & | getServer () |
Friends | |
struct | HttpServer |
Http response that will be sent to a client.
Result SC::HttpResponse::addHeader | ( | StringView | headerName, |
StringView | headerValue | ||
) |
Writes an http header to this response.
Finalizes response appending some data.
Result SC::HttpResponse::startResponse | ( | int | httpCode | ) |
Starts the response with a http standard code (200 OK, 404 NOT FOUND etc.)