REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
awot::Response Class Reference

#include <aWOT.h>

Inheritance diagram for awot::Response:
Collaboration diagram for awot::Response:

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

Definition at line 134 of file aWOT.h.

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 ( )

Definition at line 36 of file aWOT.cpp.

References P, and printP().

Referenced by status().

◆ 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 ( )

Definition at line 56 of file aWOT.cpp.

Referenced by status().

◆ 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()

FLASHMEM bool Response::headersSent ( )

Definition at line 81 of file aWOT.cpp.

◆ printP() [1/2]

FLASHMEM void Response::printP ( const char * string)

Definition at line 93 of file aWOT.cpp.

References printP().

◆ printP() [2/2]

FLASHMEM void Response::printP ( const unsigned char * string)

Definition at line 83 of file aWOT.cpp.

References write().

Referenced by beginHeaders(), printP(), and status().

◆ sendStatus()

FLASHMEM void Response::sendStatus ( int code)

Definition at line 95 of file aWOT.cpp.

◆ set()

FLASHMEM void Response::set ( const char * name,
const char * value )

◆ setDefaults()

FLASHMEM void Response::setDefaults ( )

Definition at line 131 of file aWOT.cpp.

References set().

◆ 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()

FLASHMEM int Response::statusSent ( )

Definition at line 175 of file aWOT.cpp.

◆ write() [1/2]

FLASHMEM size_t Response::write ( uint8_t * buffer,
size_t bufferLength )

Definition at line 204 of file aWOT.cpp.

References CRLF.

◆ write() [2/2]

FLASHMEM size_t Response::write ( uint8_t data)

◆ writeP()

FLASHMEM void Response::writeP ( const unsigned char * data,
size_t length )

Definition at line 226 of file aWOT.cpp.

References write().

Friends And Related Symbol Documentation

◆ Application

friend class Application
friend

Definition at line 135 of file aWOT.h.

◆ Router

friend class Router
friend

Definition at line 136 of file aWOT.h.


The documentation for this class was generated from the following files: