REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches

#include <aWOT.h>

Inheritance diagram for awot::Request:
Collaboration diagram for awot::Request:

Public Types

enum  MethodType {
  UNKNOWN , GET , HEAD , POST ,
  PUT , DELETE , PATCH , OPTIONS ,
  ALL
}
 

Public Member Functions

int available ()
 
int availableForWrite ()
 
int bytesRead ()
 
Stream * stream ()
 
void flush ()
 
bool form (char *name, int nameLength, char *value, int valueLength)
 
char * get (const char *name)
 
int left ()
 
MethodType method ()
 
char * path ()
 
int peek ()
 
void push (uint8_t ch)
 
char * query ()
 
bool query (const char *name, char *buffer, int bufferLength)
 
int read ()
 
int read (uint8_t *buf, size_t size)
 
bool route (const char *name, char *buffer, int bufferLength)
 
bool route (int number, char *buffer, int bufferLength)
 
int minorVersion ()
 
size_t write (uint8_t data)
 
size_t write (uint8_t *buffer, size_t bufferLength)
 

Public Attributes

void * context
 

Friends

class Application
 
class Router
 

Detailed Description

Definition at line 191 of file aWOT.h.

Member Enumeration Documentation

◆ MethodType

Enumerator
UNKNOWN 
GET 
HEAD 
POST 
PUT 
DELETE 
PATCH 
OPTIONS 
ALL 

Definition at line 196 of file aWOT.h.

Member Function Documentation

◆ available()

FLASHMEM int Request::available ( )

Definition at line 697 of file aWOT.cpp.

◆ availableForWrite()

FLASHMEM int Request::availableForWrite ( )

Definition at line 695 of file aWOT.cpp.

References awot::Response::availableForWrite().

◆ bytesRead()

FLASHMEM int Request::bytesRead ( )

Definition at line 699 of file aWOT.cpp.

◆ flush()

FLASHMEM void Request::flush ( )

Definition at line 717 of file aWOT.cpp.

References awot::Response::flush().

◆ form()

FLASHMEM bool Request::form ( char * name,
int nameLength,
char * value,
int valueLength )

Definition at line 719 of file aWOT.cpp.

◆ get()

FLASHMEM char * Request::get ( const char * name)

Definition at line 703 of file aWOT.cpp.

References awot::Application::strcmpi().

Referenced by websocket_upgrade().

◆ left()

FLASHMEM int Request::left ( )

Definition at line 772 of file aWOT.cpp.

◆ method()

FLASHMEM Request::MethodType Request::method ( )

Definition at line 774 of file aWOT.cpp.

◆ minorVersion()

FLASHMEM int Request::minorVersion ( )

Definition at line 919 of file aWOT.cpp.

◆ path()

FLASHMEM char * Request::path ( )

Definition at line 776 of file aWOT.cpp.

Referenced by notfound(), and serve_static().

◆ peek()

FLASHMEM int Request::peek ( )

Definition at line 778 of file aWOT.cpp.

References push(), and read().

◆ push()

FLASHMEM void Request::push ( uint8_t ch)

Definition at line 788 of file aWOT.cpp.

References SERVER_PUSHBACK_BUFFER_SIZE.

Referenced by peek().

◆ query() [1/2]

FLASHMEM char * Request::query ( )

Definition at line 797 of file aWOT.cpp.

◆ query() [2/2]

FLASHMEM bool Request::query ( const char * name,
char * buffer,
int bufferLength )

Definition at line 799 of file aWOT.cpp.

◆ read() [1/2]

int Request::read ( )

Definition at line 823 of file aWOT.cpp.

Referenced by peek(), and read().

◆ read() [2/2]

int Request::read ( uint8_t * buf,
size_t size )

Definition at line 846 of file aWOT.cpp.

References read(), and size.

◆ route() [1/2]

FLASHMEM bool Request::route ( const char * name,
char * buffer,
int bufferLength )

Definition at line 871 of file aWOT.cpp.

References route().

Referenced by route().

◆ route() [2/2]

FLASHMEM bool Request::route ( int number,
char * buffer,
int bufferLength )

Definition at line 897 of file aWOT.cpp.

◆ stream()

FLASHMEM Stream * Request::stream ( )

Definition at line 701 of file aWOT.cpp.

◆ write() [1/2]

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

Definition at line 923 of file aWOT.cpp.

References awot::Response::write().

◆ write() [2/2]

FLASHMEM size_t Request::write ( uint8_t data)

Definition at line 921 of file aWOT.cpp.

References awot::Response::write().

Friends And Related Symbol Documentation

◆ Application

friend class Application
friend

Definition at line 192 of file aWOT.h.

◆ Router

friend class Router
friend

Definition at line 193 of file aWOT.h.

Member Data Documentation

◆ context

void* awot::Request::context

Definition at line 198 of file aWOT.h.

Referenced by websocket_upgrade().


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