FrontPage

EPS8266_Arduino

EPS8266WebServer クラス

ESP8266WebServer(IPAddress addr, int port = 80)
ESP8266WebServer(int port = 80)

ESP8266WebServer()

void begin()
void handleClient()
void close()
void stop()
bool authenticate(const char * username, const char * password)
void requestAuthentication()
void on(const String &uri, THandlerFunction handler)
void on(const String &uri, HTTPMethod method, THandlerFunction fn)
void on(const String &uri, HTTPMethod method, THandlerFunction fn, THandlerFunction ufn)
void addHandler(RequestHandler* handler)
void serveStatic(const char* uri, fs::FS& fs, const char* path, const char* cache_header = NULL )
void onNotFound(THandlerFunction fn)
//called when handler is not assigne
void onFileUpload(THandlerFunction fn)
//handle file upload
String uri()
HTTPMethod method()
WiFiClient client()
HTTPUpload& upload()
String arg(String name)
// get request argument value by name
String arg(int i)
// get request argument value by number
String argName(int i)
// get request argument name by number
int args()
// get arguments count
bool hasArg(String name)
// check if argument exists
void collectHeaders(const char* headerKeys[], const size_t headerKeysCount)
// set the request headers to collect
String header(String name)
// get request header value by name
String header(int i)
// get request header value by number
String headerName(int i)
// get request header name by number
int headers()
// get header count
bool hasHeader(String name)
// check if header exists
String hostHeader()
// get request host header if available or empty String if not
void send(int code, const char* content_type = NULL, const String& content = String(""))
void send(int code, char* content_type, const String& content)
void send(int code, const String& content_type, const String& content)
void send_P(int code, PGM_P content_type, PGM_P content)
void send_P(int code, PGM_P content_type, PGM_P content, size_t contentLength)
void setContentLength(size_t contentLength)
void sendHeader(const String& name, const String& value, bool first = false)
void sendContent(const String& content)
void sendContent_P(PGM_P content)
void sendContent_P(PGM_P content, size_t size)

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS