text: This object represents a HTTP response, used to return something to the web client. More...
  #include <httpresponse.h>
  This object represents a HTTP response, used to return something to the web client.
  response.setStatus(200,"OK"); // optional, because this is the default response.writeBody("Hello"); response.writeBody("World!",true);
  Example how to return an error:
  response.setStatus(500,"server error"); response.write("The request cannot be processed because the servers is broken",true);
  In case of large responses (e.g. file downloads), a Content-Length header should be set before calling write(). Web Browsers use that information to display a progress bar.
  Definition at line 35 of file httpresponse.h.
  Constructor.
  Flush the output buffer (of the underlying socket).
  You normally don't need to call this method because flush is automatically called after HttpRequestHandler::service() returns.
  Get the map of cookies.
  Get the map of HTTP response headers.
  Return the status code.
  Returns wether this header has already been set.
  May be used to check whether the connection to the web client has been lost.
  This might be useful to cancel the generation of large or slow responses.
  Write body data to the socket.
  The HTTP status line, headers and cookies are sent automatically before the body.
  If the response contains only a single chunk (indicated by lastPart=true), then a Content-Length header is automatically set.
  Chunked mode is automatically selected if there is no Content-Length header and also no Connection:close header.