ESPHome  2024.11.0
Data Structures | Namespaces | Enumerations | Functions
http_request.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::http_request::Header
 
class  esphome::http_request::HttpContainer
 
class  esphome::http_request::HttpRequestResponseTrigger
 
class  esphome::http_request::HttpRequestComponent
 
class  esphome::http_request::HttpRequestSendAction< Ts >
 

Namespaces

 esphome
 Implementation of SPI Controller mode.
 
 esphome::http_request
 

Enumerations

enum  esphome::http_request::HttpStatus {
  esphome::http_request::HTTP_STATUS_OK = 200, esphome::http_request::HTTP_STATUS_NO_CONTENT = 204, esphome::http_request::HTTP_STATUS_PARTIAL_CONTENT = 206, esphome::http_request::HTTP_STATUS_MULTIPLE_CHOICES = 300,
  esphome::http_request::HTTP_STATUS_MOVED_PERMANENTLY = 301, esphome::http_request::HTTP_STATUS_FOUND = 302, esphome::http_request::HTTP_STATUS_SEE_OTHER = 303, esphome::http_request::HTTP_STATUS_NOT_MODIFIED = 304,
  esphome::http_request::HTTP_STATUS_TEMPORARY_REDIRECT = 307, esphome::http_request::HTTP_STATUS_PERMANENT_REDIRECT = 308, esphome::http_request::HTTP_STATUS_BAD_REQUEST = 400, esphome::http_request::HTTP_STATUS_UNAUTHORIZED = 401,
  esphome::http_request::HTTP_STATUS_FORBIDDEN = 403, esphome::http_request::HTTP_STATUS_NOT_FOUND = 404, esphome::http_request::HTTP_STATUS_METHOD_NOT_ALLOWED = 405, esphome::http_request::HTTP_STATUS_NOT_ACCEPTABLE = 406,
  esphome::http_request::HTTP_STATUS_LENGTH_REQUIRED = 411, esphome::http_request::HTTP_STATUS_INTERNAL_ERROR = 500
}
 

Functions

bool esphome::http_request::is_redirect (int const status)
 Returns true if the HTTP status code is a redirect. More...
 
bool esphome::http_request::is_success (int const status)
 Checks if the given HTTP status code indicates a successful request. More...