HttpResponse.h
Go to the documentation of this file.
bool sendNamedStream(IDataSourceStream *newDataStream)
Parse and send stream, using the name to determine the content type.
HttpResponse * setContentType(const String &type)
HttpResponse * setAllowCrossDomainOrigin(const String &controlAllowOrigin)
bool sendString(const String &text)
HttpResponse * setCookie(const String &name, const String &value)
bool sendTemplate(IDataSourceStream *newTemplateInstance)
Parse and send template file.
Definition: HttpResponse.h:84
HttpResponse * setHeader(const String &name, const String &value)
bool sendFile(const String &fileName, bool allowGzipFileCheck=true)
Send file by name.
bool sendDataStream(IDataSourceStream *newDataStream, enum MimeType type)
Send data from the given stream object.
Definition: HttpResponse.h:101
ReadWriteStream * buffer
Internal stream for storing strings and receiving responses.
Definition: HttpResponse.h:149
HttpResponse * setCache(int maxAgeSeconds=3600, bool isPublic=false)
void setBuffer(ReadWriteStream *buffer)
Called by connection to specify where incoming response data is written.
Definition: HttpResponse.h:20