initial load of upstream version 1.06.32
[xmlrpc-c] / lib / abyss / src / http.h
1 #ifndef HTTP_H_INCLUDED
2 #define HTTP_H_INCLUDED
3
4 #include "conn.h"
5
6 /*********************************************************************
7 ** Request
8 *********************************************************************/
9
10 abyss_bool RequestValidURI(TSession *r);
11 abyss_bool RequestValidURIPath(TSession *r);
12 abyss_bool RequestUnescapeURI(TSession *r);
13
14 abyss_bool RequestRead(TSession *r);
15 void RequestInit(TSession *r,TConn *c);
16 void RequestFree(TSession *r);
17
18 abyss_bool RequestAuth(TSession *r,char *credential,char *user,char *pass);
19
20 /*********************************************************************
21 ** HTTP
22 *********************************************************************/
23
24 const char *
25 HTTPReasonByStatus(uint16_t const code);
26
27 int32_t
28 HTTPRead(TSession *   const sessionP,
29          const char * const buffer,
30          uint32_t     const len);
31
32 abyss_bool
33 HTTPWriteBodyChunk(TSession *   const sessionP,
34                    const char * const buffer,
35                    uint32_t     const len);
36
37 abyss_bool
38 HTTPWriteEndChunk(TSession * const sessionP);
39
40 abyss_bool
41 HTTPKeepalive(TSession * const sessionP);
42
43 abyss_bool
44 HTTPWriteContinue(TSession * const sessionP);
45
46 #endif