00001 #ifndef HTTP_H_INCLUDED 00002 #define HTTP_H_INCLUDED 00003 00004 #include "abyss_conn.h" 00005 00006 /********************************************************************* 00007 ** Request 00008 *********************************************************************/ 00009 00010 abyss_bool RequestValidURI(TSession *r); 00011 abyss_bool RequestValidURIPath(TSession *r); 00012 abyss_bool RequestUnescapeURI(TSession *r); 00013 00014 abyss_bool RequestRead(TSession *r); 00015 void RequestInit(TSession *r,TConn *c); 00016 void RequestFree(TSession *r); 00017 00018 abyss_bool RequestAuth(TSession *r,char *credential,char *user,char *pass); 00019 00020 /********************************************************************* 00021 ** HTTP 00022 *********************************************************************/ 00023 00024 const char * 00025 HTTPReasonByStatus(uint16_t const code); 00026 00027 int32_t 00028 HTTPRead(TSession * const sessionP, 00029 const char * const buffer, 00030 uint32_t const len); 00031 00032 abyss_bool 00033 HTTPWriteBodyChunk(TSession * const sessionP, 00034 const char * const buffer, 00035 uint32_t const len); 00036 00037 abyss_bool 00038 HTTPWriteEndChunk(TSession * const sessionP); 00039 00040 abyss_bool 00041 HTTPKeepalive(TSession * const sessionP); 00042 00043 #endif
1.5.6