MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / dump_url

Function dump_url

libs/qhttpserver/http-parser/test.c:2971–2990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2969};
2970
2971void
2972dump_url (const char *url, const struct http_parser_url *u)
2973{
2974 unsigned int i;
2975
2976 printf("\tfield_set: 0x%x, port: %u\n", u->field_set, u->port);
2977 for (i = 0; i < UF_MAX; i++) {
2978 if ((u->field_set & (1 << i)) == 0) {
2979 printf("\tfield_data[%u]: unset\n", i);
2980 continue;
2981 }
2982
2983 printf("\tfield_data[%u]: off: %u len: %u part: \"%.*s\n\"",
2984 i,
2985 u->field_data[i].off,
2986 u->field_data[i].len,
2987 u->field_data[i].len,
2988 url + u->field_data[i].off);
2989 }
2990}
2991
2992void
2993test_parse_url (void)

Callers 1

test_parse_urlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected