Subversion Repositories Kolibri OS

Rev

Rev 4163 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4163 Rev 4165
Line 1... Line 1...
1
//HTTP library
1
//HTTP library
Line -... Line 2...
-
 
2
 
-
 
3
dword libHTTP = #alibHTTP;
-
 
4
char alibHTTP[23] = "/sys/lib/http.obj\0";
2
 
5
 
3
dword http_lib_init       = #aLib_init;
6
dword http_lib_init       = #aLib_init;
4
dword http_get            = #aHTTPget;
7
dword http_get            = #aHTTPget;
5
dword http_process        = #aHTTPprocess;
8
dword http_process        = #aHTTPprocess;
Line 13... Line 16...
13
#define FLAG_GOT_HEADER         1 << 1
16
#define FLAG_GOT_HEADER         1 << 1
14
#define FLAG_GOT_DATA           1 << 2
17
#define FLAG_GOT_DATA           1 << 2
15
#define FLAG_CONTENT_LENGTH     1 << 3
18
#define FLAG_CONTENT_LENGTH     1 << 3
16
#define FLAG_CHUNKED            1 << 4
19
#define FLAG_CHUNKED            1 << 4
Line 17... Line 20...
17
 
20
 
18
; error flags go into the upper word
21
// error flags go into the upper word
19
#define FLAG_INVALID_HEADER     1 << 16
22
#define FLAG_INVALID_HEADER     1 << 16
20
#define FLAG_NO_RAM             1 << 17
23
#define FLAG_NO_RAM             1 << 17
Line 21... Line 24...
21
#define FLAG_SOCKET_ERROR       1 << 18
24
#define FLAG_SOCKET_ERROR       1 << 18
Line 28... Line 31...
28
        dword   chunk_ptr;
31
        dword   chunk_ptr;
Line 29... Line 32...
29
 
32
 
30
        dword   status;
33
        dword   status;
31
        dword   header_length;
34
        dword   header_length;
32
        dword   content_length;
35
        dword   content_length;
33
        char    data[];
36
        char    data;
34
};
37
};