ESP_IOT v2.5
IOT ESP Coding
WebServer.h File Reference
#include "../../Defines.h"
#include <functional>
#include <WiFi.h>
#include <Update.h>
#include <WiFiUdp.h>
#include "RequestHandler.h"
Include dependency graph for WebServer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HTTPUpload
 
class  WebServer
 
struct  WebServer::RequestArgument
 

Namespaces

namespace  fs
 

Macros

#define HTTP_DOWNLOAD_UNIT_SIZE   1460
 
#define HTTP_UPLOAD_BUFLEN   2048
 
#define HTTP_MAX_DATA_WAIT   1000
 
#define HTTP_MAX_POST_WAIT   1000
 
#define HTTP_MAX_SEND_WAIT   5000
 
#define HTTP_MAX_CLOSE_WAIT   2000
 
#define CONTENT_LENGTH_UNKNOWN   ((size_t) -1)
 
#define CONTENT_LENGTH_NOT_SET   ((size_t) -2)
 

Enumerations

enum  HTTPMethod {
  HTTP_ANY , HTTP_GET , HTTP_POST , HTTP_PUT ,
  HTTP_PATCH , HTTP_DELETE , HTTP_OPTIONS
}
 
enum  HTTPUploadStatus { UPLOAD_FILE_START , UPLOAD_FILE_WRITE , UPLOAD_FILE_END , UPLOAD_FILE_ABORTED }
 
enum  HTTPClientStatus { HC_NONE , HC_WAIT_READ , HC_WAIT_CLOSE }
 

Macro Definition Documentation

◆ CONTENT_LENGTH_NOT_SET

#define CONTENT_LENGTH_NOT_SET   ((size_t) -2)

Definition at line 46 of file WebServer.h.

◆ CONTENT_LENGTH_UNKNOWN

#define CONTENT_LENGTH_UNKNOWN   ((size_t) -1)

Definition at line 45 of file WebServer.h.

◆ HTTP_DOWNLOAD_UNIT_SIZE

#define HTTP_DOWNLOAD_UNIT_SIZE   1460

Definition at line 38 of file WebServer.h.

◆ HTTP_MAX_CLOSE_WAIT

#define HTTP_MAX_CLOSE_WAIT   2000

Definition at line 43 of file WebServer.h.

◆ HTTP_MAX_DATA_WAIT

#define HTTP_MAX_DATA_WAIT   1000

Definition at line 40 of file WebServer.h.

◆ HTTP_MAX_POST_WAIT

#define HTTP_MAX_POST_WAIT   1000

Definition at line 41 of file WebServer.h.

◆ HTTP_MAX_SEND_WAIT

#define HTTP_MAX_SEND_WAIT   5000

Definition at line 42 of file WebServer.h.

◆ HTTP_UPLOAD_BUFLEN

#define HTTP_UPLOAD_BUFLEN   2048

Definition at line 39 of file WebServer.h.

Enumeration Type Documentation

◆ HTTPClientStatus

Enumerator
HC_NONE 
HC_WAIT_READ 
HC_WAIT_CLOSE 

Definition at line 36 of file WebServer.h.

◆ HTTPMethod

enum HTTPMethod
Enumerator
HTTP_ANY 
HTTP_GET 
HTTP_POST 
HTTP_PUT 
HTTP_PATCH 
HTTP_DELETE 
HTTP_OPTIONS 

Definition at line 33 of file WebServer.h.

◆ HTTPUploadStatus

Enumerator
UPLOAD_FILE_START 
UPLOAD_FILE_WRITE 
UPLOAD_FILE_END 
UPLOAD_FILE_ABORTED 

Definition at line 34 of file WebServer.h.