WebServer::method()

名称

WebServer::method()

説明

メソッドを返却する。

書式

#include <WebServer.h>

HTTPMethod WebServer::method();

引数

なし

戻り値

メソッド。

HTTPMethod型の定義は以下の通り。

typedef enum {
  HTTP_GET     = 0b00000001,
  HTTP_POST    = 0b00000010,
  HTTP_DELETE  = 0b00000100,
  HTTP_PUT     = 0b00001000,
  HTTP_PATCH   = 0b00010000,
  HTTP_HEAD    = 0b00100000,
  HTTP_OPTIONS = 0b01000000,
  HTTP_ANY     = 0b01111111,
} HTTPMethod;

注意

contentは、そのまま送信されるようです。

使用例

バージョン

Hardware:ESP-WROOM-32
Software:Arduino core for the ESP32 2.0.4

最終更新日

September 4, 2022

inserted by FC2 system