Public Member Functions | |
CSHTTPInputStream (CSInputStream *s) | |
void | readHead (bool trace=false) |
void | readBody () |
bool | getContentLength (uint64_t *length) |
const char * | getMethod () |
char * | getBodyData () |
size_t | getBodyLength () |
void | setBody (CSStringBufferImpl *buf) |
int | getStatus () |
CSString * | getStatusPhrase () |
CSString * | getRequestURI () |
bool | getRange (uint64_t *size, uint64_t *offset) |
virtual void | close () |
virtual size_t | read (char *b, size_t len) |
virtual int | read () |
virtual int | peek () |
virtual void | reset () |
virtual const char * | identify () |
CSStringBuffer * | readLine () |
virtual void | retain () |
virtual void | release () |
uint32_t | getRefCount () |
virtual void | finalize () |
virtual CSObject * | getKey () |
virtual int | compareKey (CSObject *) |
virtual uint32_t | hashKey () |
virtual CSObject * | getHashLink () |
virtual void | setHashLink (CSObject *) |
virtual CSObject * | getNextLink () |
virtual CSObject * | getPrevLink () |
virtual void | setNextLink (CSObject *) |
virtual void | setPrevLink (CSObject *) |
void | clearHeaders () |
CSVector * | takeHeaders () |
void | setHeaders (CSVector *headers) |
void | addHeaders (CSHTTPHeaders *h) |
void | addHeader (CSHeader *h) |
void | addHeader (const char *name, const char *value) |
void | addHeader (const char *name, uint32_t nlen, const char *value, uint32_t vlen) |
void | addHeader (CSString *name, CSString *value) |
void | addHeader (const char *name, CSString *value) |
void | addHeader (const char *name, uint64_t value) |
void | removeHeader (const char *name) |
void | removeHeader (CSString *name) |
CSString * | getHeaderValue (const char *name) |
const char * | getHeaderCStringValue (const char *name) |
void | writeHeader (CSOutputStream *out, bool trace) |
bool | keepAlive () |
bool | expect100Continue () |
bool | unknownEpectHeader () |
uint32_t | numHeaders () |
CSHeader * | getHeader (uint32_t idx) |
Static Public Member Functions | |
static CSHTTPInputStream * | newStream (CSInputStream *i) |
Private Member Functions | |
void | freeHead () |
Private Attributes | |
CSInputStream * | iInput |
int | iStatus |
CSString * | iMethod |
CSString * | iRequestURI |
CSString * | iHTTPVersion |
CSString * | iStatusPhrase |
CSStringBuffer | iBody |
Definition at line 118 of file CSHTTPStream.h.