fix http.h for c--
git-svn-id: svn://kolibrios.org@4165 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
dc003af096
commit
e45fb26043
@ -1,5 +1,8 @@
|
|||||||
//HTTP library
|
//HTTP library
|
||||||
|
|
||||||
|
dword libHTTP = #alibHTTP;
|
||||||
|
char alibHTTP[23] = "/sys/lib/http.obj\0";
|
||||||
|
|
||||||
dword http_lib_init = #aLib_init;
|
dword http_lib_init = #aLib_init;
|
||||||
dword http_get = #aHTTPget;
|
dword http_get = #aHTTPget;
|
||||||
dword http_process = #aHTTPprocess;
|
dword http_process = #aHTTPprocess;
|
||||||
@ -15,7 +18,7 @@ char aHTTPprocess[8] = "process\0";
|
|||||||
#define FLAG_CONTENT_LENGTH 1 << 3
|
#define FLAG_CONTENT_LENGTH 1 << 3
|
||||||
#define FLAG_CHUNKED 1 << 4
|
#define FLAG_CHUNKED 1 << 4
|
||||||
|
|
||||||
; error flags go into the upper word
|
// error flags go into the upper word
|
||||||
#define FLAG_INVALID_HEADER 1 << 16
|
#define FLAG_INVALID_HEADER 1 << 16
|
||||||
#define FLAG_NO_RAM 1 << 17
|
#define FLAG_NO_RAM 1 << 17
|
||||||
#define FLAG_SOCKET_ERROR 1 << 18
|
#define FLAG_SOCKET_ERROR 1 << 18
|
||||||
@ -30,5 +33,5 @@ struct http_msg{
|
|||||||
dword status;
|
dword status;
|
||||||
dword header_length;
|
dword header_length;
|
||||||
dword content_length;
|
dword content_length;
|
||||||
char data[];
|
char data;
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user