WebServer::send()

名称

WebServer::send()

説明

クライアントにレスポンスを送信する。

書式

#include <WebServer.h>

void WebServer::send(int code, const char* content_type = NULL, const String& content = String(""));

void WebServer::send(int code, char* content_type, const String& content);

void WebServer::send(int code, const String& content_type, const String& content);

void WebServer::send(int code, const char* content_type, const char* content);

引数

code HTTPステータスコード。
content_type コンテンツタイプ。
content コンテンツ。

戻り値

なし。

注意

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

使用例

バージョン

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

最終更新日

September 4, 2022

inserted by FC2 system