Lines Matching defs:url
10 #include "http-url.h"
25 struct http_url url;
47 .url = { .host = { .name = "example.com" } }
59 .url = { .host = { .name = "example.com" } }
70 .url = {
83 .url = {
100 .url = {
115 .url = {
128 .url = { .host = { .name = "www.example.com" } }
141 .url = { .host = { .name = "www.example.com" } }
154 .url = { .host = { .name = "example.com" } }
167 .url = { .host = { .name = "example.com" } }
262 if (request.target.url == NULL) {
263 test_out("request->target.url = (null)",
264 test->target.url.host.name == NULL && test->target.url.port == 0);
266 if (request.target.url->host.name == NULL ||
267 test->target.url.host.name == NULL) {
268 test_out(t_strdup_printf("request->target.url->host.name = %s",
269 request.target.url->host.name),
270 request.target.url->host.name == test->target.url.host.name);
272 test_out(t_strdup_printf("request->target.url->host.name = %s",
273 request.target.url->host.name),
274 strcmp(request.target.url->host.name,
275 test->target.url.host.name) == 0);
277 if (request.target.url->port == 0) {
278 test_out("request->target.url->port = (unspecified)",
279 request.target.url->port == test->target.url.port);
282 ("request->target.url->port = %u", request.target.url->port),
283 request.target.url->port == test->target.url.port);
285 test_out(t_strdup_printf("request->target.url->have_ssl = %s",
286 (request.target.url->have_ssl ? "yes" : "no")),
287 request.target.url->have_ssl == test->target.url.have_ssl);