#ifndef HTTP_URL_H
#define HTTP_URL_H
#include "net.h"
#include "uri-util.h"
#include "http-common.h"
struct http_request_target;
struct http_url {
/* server */
/* userinfo (not parsed by default) */
const char *user;
const char *password;
/* path */
const char *path;
/* ?query (still encoded) */
const char *enc_query;
/* #fragment (still encoded) */
const char *enc_fragment;
};
/*
* HTTP URL parsing
*/
enum http_url_parse_flags {
/* Scheme part 'http:' is already parsed externally. This implies that
this is an absolute HTTP URL. */
/* Allow '#fragment' part in HTTP URL */
/* Allow 'user:password@' part in HTTP URL */
/* Allow URL to contain %00 */
};
int http_url_request_target_parse(const char *request_target,
/*
* HTTP URL evaluation
*/
{
}
{
return http_url_get_port_default(url,
}
/*
* HTTP URL manipulation
*/
/*
* HTTP URL construction
*/
#endif