Lines Matching refs:base
22 struct http_url *base;
105 struct http_url *url = url_parser->url, *base = url_parser->base;
228 /* Relative URLs are only valid when we have a base URL */
230 if (base == NULL) {
234 uri_host_copy(parser->pool, &url->host, &base->host);
235 url->port = base->port;
236 url->have_ssl = base->have_ssl;
237 url->user = p_strdup_empty(parser->pool, base->user);
238 url->password = p_strdup_empty(parser->pool, base->password);
253 if (relative && path_relative > 0 && base->path != NULL) {
254 const char *pbegin = base->path;
255 const char *pend = base->path + strlen(base->path);
260 /* discard trailing segments of base path based on how many effective
291 url->path = p_strdup(parser->pool, base->path);
301 url->enc_query = p_strdup(parser->pool, base->enc_query);
315 url->enc_fragment = p_strdup(parser->pool, base->enc_fragment);
328 int http_url_parse(const char *url, struct http_url *base,
334 /* base != NULL indicates whether relative URLs are allowed. However, certain
336 i_assert((flags & HTTP_URL_PARSE_SCHEME_EXTERNAL) == 0 || base == NULL);
343 url_parser.base = base;
361 struct http_url base;
386 i_zero(&base);
387 base.host = auth.host;
388 base.port = auth.port;
396 url_parser.base = &base;