Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
HttpAsynchResp.h File Reference
#include <HttpServer.h>
Include dependency graph for HttpAsynchResp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HttpAsynchResp
 Send data asynchronously to a client. More...
 

Macros

#define HttpAsynchResp_asynchThreadMode(o)    ((o)->mutex=HttpAsynchResp_getMutex(o))
 Select worker-thread send behavior; see HttpAsynchResp::asynchThreadMode. More...
 
#define HttpAsynchResp_destructor(o)   HttpAsynchResp_close(o)
 Close the response; no status is returned. More...
 
#define HttpAsynchResp_getMutex(o)    SoDisp_getMutex(HttpConnection_getDispatcher((HttpConnection*)(o)))
 
#define HttpAsynchResp_setConClose(o)    HttpConnection_clearKeepAlive((HttpConnection*)(o))
 Disable persistent connection reuse before sending headers. More...
 
#define HttpAsynchResp_setLingeringClose(o)   (o)->doLingeringClose=TRUE
 Enable the lingering-close queue before sending headers. More...
 
#define HttpAsynchResp_isAsynchThreadMode(o)   ((o)->mutex ? TRUE : FALSE)
 

Typedefs

typedef HttpAsynchResp HttpAsynchResp
 Send data asynchronously to a client. More...
 

Functions

BA_API void HttpAsynchResp_constructor (HttpAsynchResp *o, char *buf, int size, HttpRequest *req)
 Initialize from a request and take over its connection. More...
 
BA_API void HttpAsynchResp_constructor2 (HttpAsynchResp *o, char *buf, int size, HttpConnection *con)
 Initialize from a connection and take over its socket. More...
 
BA_API void HttpAsynchResp_ReqRespInit (HttpAsynchResp *o, char *buf, int size, HttpConnection *con)
 Initialize the response half of a combined request/response object. More...
 
BA_API BaBool HttpAsynchResp_isValid (HttpAsynchResp *o)
 Check the installed buffer and connection. More...
 
BA_API void HttpAsynchResp_close (HttpAsynchResp *o)
 Flushes the response, if any, and checks the connection object: A valid and persistent HTTP 1.1 socket connection object is moved back into the Web-server's HTTP 1.1 HttpConnection pool such that the connection can be recycled. More...
 
BA_API int HttpAsynchResp_setStatus (HttpAsynchResp *o, int statusCode, const char *protocol)
 Append the HTTP status line and standard Date/Server headers. More...
 
BA_API int HttpAsynchResp_setHeader (HttpAsynchResp *o, const char *name, const char *value)
 Append a response header before starting the body. More...
 
BA_API int HttpAsynchResp_sendData (HttpAsynchResp *o, const void *data, int pktSize, int chunkSize)
 Begin a fixed-length response body. More...
 
BA_API int HttpAsynchResp_sendNextChunk (HttpAsynchResp *o, const void *data, int chunkSize)
 Continue the fixed-length body begun with sendData. More...
 
BA_API BufPrintHttpAsynchResp_getWriter (HttpAsynchResp *o)
 BufPrint is used when sending data of unknown length. More...