REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
#include <aWOT.h>


Public Member Functions | |
int | availableForWrite () |
int | bytesSent () |
void | beginHeaders () |
void | end () |
void | endHeaders () |
bool | ended () |
void | flush () |
const char * | get (const char *name) |
bool | headersSent () |
void | printP (const unsigned char *string) |
void | printP (const char *string) |
void | sendStatus (int code) |
void | set (const char *name, const char *value) |
void | setDefaults () |
void | status (int code) |
int | statusSent () |
size_t | write (uint8_t data) |
size_t | write (uint8_t *buffer, size_t bufferLength) |
void | writeP (const unsigned char *data, size_t length) |
Friends | |
class | Application |
class | Router |
Detailed Description
Member Function Documentation
◆ availableForWrite()
FLASHMEM int Response::availableForWrite | ( | ) |
Definition at line 34 of file aWOT.cpp.
References SERVER_OUTPUT_BUFFER_SIZE.
Referenced by awot::Request::availableForWrite().
◆ beginHeaders()
FLASHMEM void Response::beginHeaders | ( | ) |
◆ bytesSent()
FLASHMEM int Response::bytesSent | ( | ) |
Definition at line 52 of file aWOT.cpp.
Referenced by serve_static(), and write().
◆ end()
FLASHMEM void Response::end | ( | ) |
Definition at line 54 of file aWOT.cpp.
Referenced by serve_static(), and websocket_upgrade().
◆ ended()
FLASHMEM bool Response::ended | ( | ) |
Definition at line 63 of file aWOT.cpp.
Referenced by serve_static().
◆ endHeaders()
FLASHMEM void Response::endHeaders | ( | ) |
◆ flush()
FLASHMEM void Response::flush | ( | ) |
Definition at line 65 of file aWOT.cpp.
Referenced by awot::Request::flush(), serve_static(), and websocket_upgrade().
◆ get()
FLASHMEM const char * Response::get | ( | const char * | name | ) |
Definition at line 71 of file aWOT.cpp.
References awot::Application::strcmpi().
◆ headersSent()
◆ printP() [1/2]
FLASHMEM void Response::printP | ( | const char * | string | ) |
◆ printP() [2/2]
FLASHMEM void Response::printP | ( | const unsigned char * | string | ) |
◆ sendStatus()
◆ set()
FLASHMEM void Response::set | ( | const char * | name, |
const char * | value ) |
Definition at line 105 of file aWOT.cpp.
References P, SERVER_MAX_HEADERS, and awot::Application::strcmpiP().
Referenced by about_static(), index(), notfound(), serve_static(), set_cors(), setDefaults(), and websocket_upgrade().
◆ setDefaults()
◆ status()
FLASHMEM void Response::status | ( | int | code | ) |
Definition at line 146 of file aWOT.cpp.
References beginHeaders(), endHeaders(), P, and printP().
Referenced by api(), api_preflight(), index(), notfound(), serve_static(), and websocket_upgrade().
◆ statusSent()
◆ write() [1/2]
FLASHMEM size_t Response::write | ( | uint8_t * | buffer, |
size_t | bufferLength ) |
◆ write() [2/2]
FLASHMEM size_t Response::write | ( | uint8_t | data | ) |
Definition at line 177 of file aWOT.cpp.
References bytesSent(), CRLF, and SERVER_OUTPUT_BUFFER_SIZE.
Referenced by printP(), serve_static(), awot::Request::write(), awot::Request::write(), and writeP().
◆ writeP()
FLASHMEM void Response::writeP | ( | const unsigned char * | data, |
size_t | length ) |
Friends And Related Symbol Documentation
◆ Application
|
friend |
◆ Router
The documentation for this class was generated from the following files: