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