http-url.h revision 5394bed8aaef2a6c1c870a34a23a7824e1f370bb
#ifndef HTTP_URL_H
#define HTTP_URL_H
struct http_url {
/* server */
const char *host_name;
/* path */
const char *path;
/* ?query (still encoded) */
const char *enc_query;
/* #fragment (still encoded) */
const char *enc_fragment;
unsigned int have_port:1;
unsigned int have_ssl:1;
};
/*
* HTTP URL parsing
*/
enum http_url_parse_flags {
/* Scheme part 'http:' is already parsed externally. This implies that
this is an absolute HTTP URL. */
HTTP_URL_PARSE_SCHEME_EXTERNAL = 0x01,
/* Allow '#fragment' part in URL */
HTTP_URL_ALLOW_FRAGMENT_PART = 0x02
};
enum http_url_parse_flags flags,
/*
* HTTP URL construction
*/
#endif