1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* url-util.h : utility functions to parse URLs */
5 * Copyright 1999-2002 Ximian, Inc.
14 typedef GQuark SoupProtocol;
15 #define SOUP_PROTOCOL_HTTP (g_quark_from_static_string ("http"))
16 #define SOUP_PROTOCOL_HTTPS (g_quark_from_static_string ("https"))
19 SoupProtocol protocol;
34 SoupUri *soup_uri_new_with_base (const SoupUri *base,
35 const char *uri_string);
36 SoupUri *soup_uri_new (const char *uri_string);
38 char *soup_uri_to_string (const SoupUri *uri,
41 SoupUri *soup_uri_copy (const SoupUri *uri);
43 gboolean soup_uri_equal (const SoupUri *uri1,
46 void soup_uri_free (SoupUri *uri);
48 void soup_uri_set_auth (SoupUri *uri,
51 const char *authmech);
53 char *soup_uri_encode (const char *part,
54 const char *escape_extra);
55 void soup_uri_decode (char *part);