server_help.h 394 B

1234567891011121314151617
  1. #pragma once
  2. #ifndef SERVERHELP_H
  3. #define SERVERHELP_H
  4. #include <string>
  5. //#include <sys/param.h>
  6. #include "esp_http_server.h"
  7. const char* get_path_from_uri(char *dest, const char *base_path, const char *uri, size_t destsize);
  8. esp_err_t send_file(httpd_req_t *req, std::string filename);
  9. esp_err_t set_content_type_from_file(httpd_req_t *req, const char *filename);
  10. #endif //SERVERHELP_H