A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://fhessel.github.io/esp32_https_server/classhttpsserver_1_1HTTPResponse.html below:

ESP32 HTTPS Server: httpsserver::HTTPResponse Class Reference

Represents the response stream of an HTTP request. More...

#include <HTTPResponse.hpp>

  HTTPResponse (ConnectionContext *con)   void  setStatusCode (uint16_t statusCode)   void  setStatusText (std::string const &statusText)   uint16_t  getStatusCode ()   std::string  getStatusText ()   void  setHeader (std::string const &name, std::string const &value)   std::string  getHeader (std::string const &name)   bool  isHeaderWritten ()   void  printStd (std::string const &str)   size_t  write (const uint8_t *buffer, size_t size)   size_t  write (uint8_t)   void  error ()   bool  isResponseBuffered ()   void  finalize ()  

Represents the response stream of an HTTP request.

◆ error() void httpsserver::HTTPResponse::error ( )

This method can be called to cancel the ongoing transmission and send the error page (if possible)

◆ printStd() void httpsserver::HTTPResponse::printStd ( std::string const &  str )

Writes a string to the response. May be called several times.

◆ write() [1/2] size_t httpsserver::HTTPResponse::write ( const uint8_t *  buffer, size_t  size  )

Writes bytes to the response. May be called several times.

◆ write() [2/2] size_t httpsserver::HTTPResponse::write ( uint8_t  b )

Writes a single byte to the response.

The documentation for this class was generated from the following files:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4