Skip to content
Sander edited this page Feb 1, 2016 · 7 revisions

ArduinoHttpServer

StreamHttpRequest

Construction:

  • StreamHttpRequest(Stream& stream)

Initiate parsing:

  • bool readRequest()

Request information:

  • const ArduinoHttpServer::HttpResource& getResource() const
  • const MethodEnum getMethod() const
  • const String& getVersion() const

Field information:

  • const String& getContentType() const
  • const int getContentLength() const

Body retrieval:

  • const char* const getBody() const

State retrieval:

  • const String& getErrorDescrition()
  • Stream& getStream()

StreamHttpReply

  • StreamHttpReply(Stream& stream, const String& contentType)
  • void send(const String& data)
Clone this wiki locally