|
HomePort
|
Go to the source code of this file.
Data Structures | |
| struct | data |
Functions | |
| ASSERT_STR_EQUAL (data.url, url) | |
| ASSERT_STR_EQUAL (data.url,"/") | |
| free (data.url) | |
| void | on_begin (void *data) |
| void | on_host (void *data, const char *host, size_t length) |
| void | on_key_value (void *data, const char *key, size_t key_length, const char *value, size_t value_length) |
| void | on_path_complete (void *data, const char *seg, size_t length) |
| void | on_path_segment (void *data, const char *seg, size_t length) |
| void | on_port (void *data, const char *port, size_t length) |
| void | on_protocol (void *data, const char *protocol, size_t length) |
| up_add_chunk (instance, url, strlen(url)) | |
| up_add_chunk (instance, url1, strlen(url1)) | |
| up_add_chunk (instance, url2, strlen(url2)) | |
| up_add_chunk (instance,&url, 1) | |
| up_complete (instance) | |
| up_destroy (instance) | |
Variables | |
| _errors = data.errors | |
| data | call_order = 0 |
| data | cur_key_value = 0 |
| data | cur_path = 0 |
| struct data | data |
| data | errors = 0 |
| data | host = "localhost" |
| struct up * | instance = up_create(&settings, &data) |
| data | key = "id\0brand" |
| settings | on_begin = &on_begin |
| settings | on_host = &on_host |
| settings | on_key_value = &on_key_value |
| settings | on_path_complete = &on_path_complete |
| settings | on_path_segment = &on_path_segment |
| settings | on_port = &on_port |
| settings | on_protocol = &on_protocol |
| data | path = "device\0tv" |
| data | port = "8080" |
| data | protocol = "http" |
| struct up_settings | settings = UP_SETTINGS_DEFAULT |
| char * | url = "http://localhost:8080/device/tv?id=1&brand=Apple" |
| char * | url1 = "http://localhost:8080/device/" |
| char * | url2 = "tv?id=1&brand=Apple" |
| data | value = "1\0Apple" |
| struct data |
Definition at line 32 of file header_parser_test.c.
| ASSERT_STR_EQUAL | ( | data. | url, |
| url | |||
| ) |
| ASSERT_STR_EQUAL | ( | data. | url, |
| "/" | |||
| ) |
| free | ( | data. | url | ) |
| void on_begin | ( | void * | data | ) |
| void on_host | ( | void * | data, |
| const char * | host, | ||
| size_t | length | ||
| ) |
| void on_key_value | ( | void * | data, |
| const char * | key, | ||
| size_t | key_length, | ||
| const char * | value, | ||
| size_t | value_length | ||
| ) |
| void on_path_complete | ( | void * | data, |
| const char * | seg, | ||
| size_t | length | ||
| ) |
| void on_path_segment | ( | void * | data, |
| const char * | seg, | ||
| size_t | length | ||
| ) |
| void on_port | ( | void * | data, |
| const char * | port, | ||
| size_t | length | ||
| ) |
| void on_protocol | ( | void * | data, |
| const char * | protocol, | ||
| size_t | length | ||
| ) |
| up_add_chunk | ( | instance | , |
| & | url, | ||
| 1 | |||
| ) |
| up_complete | ( | instance | ) |
| up_destroy | ( | instance | ) |
| _errors = data.errors |
Definition at line 218 of file url_parser_test.c.
| data call_order = 0 |
Definition at line 205 of file url_parser_test.c.
| data cur_key_value = 0 |
Definition at line 203 of file url_parser_test.c.
| data cur_path = 0 |
Definition at line 201 of file url_parser_test.c.
Definition at line 196 of file url_parser_test.c.
| data errors = 0 |
Definition at line 206 of file url_parser_test.c.
| data host = "localhost" |
Definition at line 198 of file url_parser_test.c.
Definition at line 210 of file url_parser_test.c.
| data key = "id\0brand" |
Definition at line 202 of file url_parser_test.c.
| settings on_begin = &on_begin |
Definition at line 184 of file url_parser_test.c.
| settings on_host = &on_host |
Definition at line 186 of file url_parser_test.c.
| settings on_key_value = &on_key_value |
Definition at line 190 of file url_parser_test.c.
| settings on_path_complete = &on_path_complete |
Definition at line 189 of file url_parser_test.c.
| settings on_path_segment = &on_path_segment |
Definition at line 188 of file url_parser_test.c.
| settings on_port = &on_port |
Definition at line 187 of file url_parser_test.c.
| settings on_protocol = &on_protocol |
Definition at line 185 of file url_parser_test.c.
| data path = "device\0tv" |
Definition at line 200 of file url_parser_test.c.
| data port = "8080" |
Definition at line 199 of file url_parser_test.c.
| data protocol = "http" |
Definition at line 197 of file url_parser_test.c.
| struct up_settings settings = UP_SETTINGS_DEFAULT |
Definition at line 183 of file url_parser_test.c.
| data url = "http://localhost:8080/device/tv?id=1&brand=Apple" |
Definition at line 194 of file url_parser_test.c.
| char* url1 = "http://localhost:8080/device/" |
Definition at line 259 of file url_parser_test.c.
| char* url2 = "tv?id=1&brand=Apple" |
Definition at line 260 of file url_parser_test.c.
| data value = "1\0Apple" |
Definition at line 204 of file url_parser_test.c.
1.8.9.1