|
| NET_WebResponse () |
|
| NET_WebResponse (NET_HTTPStatusCode code) |
|
| NET_WebResponse (NET_HTTPStatusCode code, const UT_StringHolder &data) |
|
| NET_WebResponse (NET_HTTPStatusCode code, const HeaderMap &headers, const UT_StringHolder &data) |
|
| NET_WebResponse (NET_HTTPStatusCode code, const HeaderMap &headers) |
|
| NET_WebResponse (const NET_WebResponse &resp)=default |
|
NET_WebResponse & | operator= (const NET_WebResponse &resp)=default |
|
| NET_WebResponse (NET_WebResponse &&resp)=default |
|
NET_WebResponse & | operator= (NET_WebResponse &&resp)=default |
|
| NET_WebResponse (const NET_HTTPResponse &resp) |
|
NET_WebResponse & | operator= (const NET_HTTPResponse &resp) |
|
void | clear () |
|
bool | isFile () const |
|
bool | isChunked () const |
|
bool | hasHeader (const UT_StringRef &header) const |
|
const UT_StringHolder & | getHeaderOrEmpty (const UT_StringRef &header) const |
|
void | setDefault (const UT_StringHolder &name, const UT_StringHolder &value) |
|
void | setStatus (NET_HTTPStatusCode code) |
|
NET_HTTPStatusCode | status () const |
|
void | setHeader (const UT_StringRef &name, const UT_StringRef &value) |
|
void | setHeaders (const HeaderMap &headers) |
|
void | patchHeader (const UT_StringHolder &name, const UT_StringHolder &value) |
|
void | setBody (const UT_StringHolder &body, const UT_StringRef &content_type="") |
|
void | setBodyChunk (const UT_StringHolder &body, bool has_more=false) |
|
void | setText (const UT_StringHolder &body) |
|
void | setJSON (const UT_StringHolder &body) |
|
void | setFile (const UT_StringHolder &file, bool delete_file) |
|
void | clearBody () |
|
void | clearFile () |
|
void | setRanges (const NET_RequestRangeList &ranges) |
|
void | clearRanges () |
|
bool | shouldClose () const |
|
const UT_StringHolder & | data () const |
|
exint | contentLength () const |
|
const UT_StringHolder & | contentType () const |
|
const HeaderMap & | headers () const |
|
bool | isUpgrade () const |
|
void | setErrors (const UT_StringHolder &errors) |
|
const NET_RequestRangeList & | ranges () const |
|
const UT_StringHolder & | boundary () const |
|
bool | isTempFile () const |
|
const UT_StringHolder & | file () const |
|
bool | hasMoreData () const |
|
bool | keepAlive () const |
|
void | setKeepAlive (bool keep_alive) |
|
void | addCookie (const NET_NetworkCookie &cookie) |
|
void | deleteCookie (const UT_StringRef &name) |
|
bool | hasCookie (const UT_StringRef &name) const |
|
bool | getCookie (const UT_StringRef &name, NET_NetworkCookie &cookie) const |
|
Response object used for responding to request in the server.
Definition at line 315 of file NET_WebResponse.h.