~dmedia/degu/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Python globals:
    _init_all_globals()

DeguSrc globals

namedtuples:
    Bodies
    Request
    Response
    _init_namedtuple()
    _init_all_namedtuples()

Python object validation and conversion:
    _check_type()
    _check_type2()
    _check_int()
    _get_size()
    _get_read_size()
    _get_length()
    _check_tuple()
    _check_bytes()
    _get_bytes_len()
    _getcallable()

Helpers to clear DeguHeaders, DeguRequest, DeguResponse, DeguChunk:
    _clear_degu_headers()
    _clear_degu_request()
    _clear_degu_response()
    _clear_degu_chunk()

Header parsing:
    Internal C API:
        _parse_key()
        _parse_val()
        _parse_decimal()
        _parse_content_length()
        _parse_range()
        _parse_content_range()
        _parse_header_line()
        _parse_headers()
        _create_body()
    Exported Python functions:
        parse_header_name()
        parse_content_length()
        parse_range()
        parse_content_range()
        parse_headers()

Request parsing:
    Internal C API:
        _parse_method()
        _parse_path_component()
        _parse_path()
        _parse_query()
        _parse_uri()
        _parse_request_line()
        _parse_request()
    Exported Python functions:
        parse_method()
        parse_uri()
        parse_request_line()
        parse_request()

Response parsing:
    Internal C API:
        _parse_status()
        _parse_reason()
        _parse_response_line()
        _parse_response()
    Exported Python functions:
        parse_response_line()
        parse_response()