+ url = calloc_a(sizeof(*url),
+ &host_buf, host_len + 1,
+ &uri_buf, strlen(location) + 1);
+
+ url->backend = backend;
+ url->location = strcpy(uri_buf, location);
+
+ url->host = strncpy(host_buf, url_str, host_len);
+
+ next = strchr(host_buf, '@');