#if __has_include("esp_http_client.h")
#include "esp_http_client.h"
#endif
+#if __has_include("esp_http_server.h")
+#include "esp_http_server.h"
+#endif
#if __has_include("esp_image_format.h")
#include "esp_image_format.h"
#endif
#if __has_include("esp_wps.h")
#include "esp_wps.h"
#endif
-#if __has_include("http_server.h")
-#include "http_server.h"
-#endif
#if __has_include("nvs.h")
#include "nvs.h"
#endif
# ifdef ESP_ERR_HTTP_EAGAIN
ERR_TBL_IT(ESP_ERR_HTTP_EAGAIN), /* 28679 0x7007 Mapping of errno EAGAIN to esp_err_t */
# endif
- // components/http_server/include/http_server.h
+ // components/esp_http_server/include/esp_http_server.h
# ifdef ESP_ERR_HTTPD_BASE
ERR_TBL_IT(ESP_ERR_HTTPD_BASE), /* 32768 0x8000 Starting number of HTTPD error codes */
# endif
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef _HTTP_SERVER_H_
-#define _HTTP_SERVER_H_
+#ifndef _ESP_HTTP_SERVER_H_
+#define _ESP_HTTP_SERVER_H_
#include <stdio.h>
#include <string.h>
}
#endif
-#endif /* ! _HTTP_SERVER_H_ */
+#endif /* ! _ESP_HTTP_SERVER_H_ */
--- /dev/null
+#warning http_server.h has been renamed to esp_http_server.h, please update include directives
+#include "esp_http_server.h"
#include <netinet/in.h>
#include <esp_log.h>
#include <esp_err.h>
-#include <http_server.h>
+#include <esp_http_server.h>
#include "osal.h"
#ifdef __cplusplus
#include <esp_err.h>
#include <assert.h>
-#include <http_server.h>
-#include "httpd_priv.h"
+#include <esp_http_server.h>
+#include "esp_httpd_priv.h"
#include "ctrl_sock.h"
static const char *TAG = "httpd";
#include <esp_log.h>
#include <esp_err.h>
#include <http_parser.h>
-#include <http_server.h>
-#include "httpd_priv.h"
+#include <esp_http_server.h>
+#include "esp_httpd_priv.h"
#include "osal.h"
static const char *TAG = "httpd_parse";
#include <esp_log.h>
#include <esp_err.h>
-#include <http_server.h>
-#include "httpd_priv.h"
+#include <esp_http_server.h>
+#include "esp_httpd_priv.h"
static const char *TAG = "httpd_sess";
#include <esp_log.h>
#include <esp_err.h>
-#include <http_server.h>
-#include "httpd_priv.h"
+#include <esp_http_server.h>
+#include "esp_httpd_priv.h"
static const char *TAG = "httpd_txrx";
#include <esp_err.h>
#include <http_parser.h>
-#include <http_server.h>
-#include "httpd_priv.h"
+#include <esp_http_server.h>
+#include "esp_httpd_priv.h"
static const char *TAG = "httpd_uri";
--- /dev/null
+set(COMPONENT_SRCDIRS ".")
+set(COMPONENT_ADD_INCLUDEDIRS ".")
+
+set(COMPONENT_REQUIRES unity esp_http_server)
+
+register_component()
#include <stdlib.h>
#include <stdbool.h>
#include <esp_system.h>
-#include <http_server.h>
+#include <esp_http_server.h>
#include "unity.h"
#include "test_utils.h"
+++ /dev/null
-set(COMPONENT_SRCDIRS ".")
-set(COMPONENT_ADD_INCLUDEDIRS ".")
-
-set(COMPONENT_REQUIRES unity http_server)
-
-register_component()
\ No newline at end of file