- cacheForever
void cacheForever()
Undocumented in source. Be warned that the author may not have intended to support it.
- disableCache
void disableCache()
Undocumented in source. Be warned that the author may not have intended to support it.
- dup
HttpResponseEx dup()
Undocumented in source. Be warned that the author may not have intended to support it.
- redirect
HttpResponseEx redirect(string location, HttpStatusCode status)
Redirect the UA to another location
- serveData
HttpResponseEx serveData(string data, string contentType)
Undocumented in source. Be warned that the author may not have intended to support it.
- serveData
HttpResponseEx serveData(Data[] data, string contentType)
Undocumented in source. Be warned that the author may not have intended to support it.
- serveData
HttpResponseEx serveData(Data data, string contentType)
Undocumented in source. Be warned that the author may not have intended to support it.
- serveFile
HttpResponseEx serveFile(string path, string fsBase, bool enableIndex, string urlBase)
Send a file from the disk
- serveJson
HttpResponseEx serveJson(T v)
Undocumented in source. Be warned that the author may not have intended to support it.
- serveText
HttpResponseEx serveText(string data)
Undocumented in source. Be warned that the author may not have intended to support it.
- setRefresh
void setRefresh(int seconds, string location)
Undocumented in source. Be warned that the author may not have intended to support it.
- writeError
HttpResponseEx writeError(HttpStatusCode code, string details)
Undocumented in source. Be warned that the author may not have intended to support it.
- writePage
void writePage(string title, string[] html)
Undocumented in source. Be warned that the author may not have intended to support it.
- writePageContents
void writePageContents(string title, string contentHTML)
Undocumented in source. Be warned that the author may not have intended to support it.
HttpResponse with some code to ease creating responses