Rev 4168 | Rev 4206 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4158 | hidnplayr | 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
||
3 | ;; Copyright (C) KolibriOS team 2004-2013. All rights reserved. ;; |
||
4 | ;; Distributed under terms of the GNU General Public License ;; |
||
5 | ;; ;; |
||
6 | ;; HTTP library for KolibriOS ;; |
||
7 | ;; ;; |
||
8 | ;; Written by hidnplayr@kolibrios.org ;; |
||
9 | ;; ;; |
||
10 | ;; GNU GENERAL PUBLIC LICENSE ;; |
||
11 | ;; Version 2, June 1991 ;; |
||
12 | ;; ;; |
||
13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
||
14 | |||
15 | |||
16 | FLAG_HTTP11 = 1 shl 0 |
||
17 | FLAG_GOT_HEADER = 1 shl 1 |
||
4205 | hidnplayr | 18 | FLAG_GOT_ALL_DATA = 1 shl 2 |
4158 | hidnplayr | 19 | FLAG_CONTENT_LENGTH = 1 shl 3 |
20 | FLAG_CHUNKED = 1 shl 4 |
||
4205 | hidnplayr | 21 | FLAG_CONNECTED = 1 shl 5 |
4158 | hidnplayr | 22 | |
23 | ; error flags go into the upper word |
||
24 | FLAG_INVALID_HEADER = 1 shl 16 |
||
25 | FLAG_NO_RAM = 1 shl 17 |
||
26 | FLAG_SOCKET_ERROR = 1 shl 18 |
||
27 | |||
28 | struc http_msg { |
||
29 | .socket dd ? |
||
30 | .flags dd ? |
||
31 | .write_ptr dd ? |
||
32 | .buffer_length dd ? |
||
33 | .chunk_ptr dd ? |
||
34 | |||
35 | .status dd ? |
||
36 | .header_length dd ? |
||
37 | .content_length dd ? |
||
4168 | hidnplayr | 38 | .content_received dd ? |
4158 | hidnplayr | 39 | .data: |
40 | } |