Http response that will be sent to a client. More...
#include <HttpServer.h>
Public Member Functions | |
| Result | startResponse (int httpCode) |
| Starts the response with a http standard code (200 OK, 404 NOT FOUND etc.) | |
| Result | addHeader (StringSpan headerName, StringSpan 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. | |
| Result | end () |
| void | reset () |
Friends | |
| struct | HttpServer |
Http response that will be sent to a client.
| Result SC::HttpResponse::addHeader | ( | StringSpan | headerName, |
| StringSpan | 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.)