Top |
Functions
CamelURL * | camel_url_new_with_base () |
CamelURL * | camel_url_new () |
gchar * | camel_url_to_string () |
guint | camel_url_hash () |
gint | camel_url_equal () |
CamelURL * | camel_url_copy () |
void | camel_url_free () |
gchar * | camel_url_encode () |
void | camel_url_decode () |
gchar * | camel_url_decode_path () |
void | camel_url_set_protocol () |
void | camel_url_set_user () |
void | camel_url_set_authmech () |
void | camel_url_set_host () |
void | camel_url_set_port () |
void | camel_url_set_path () |
void | camel_url_set_param () |
void | camel_url_set_query () |
void | camel_url_set_fragment () |
const gchar * | camel_url_get_param () |
Functions
camel_url_new_with_base ()
CamelURL * camel_url_new_with_base (CamelURL *base
,const gchar *url_string
);
Parses url_string
relative to base
.
camel_url_new ()
CamelURL * camel_url_new (const gchar *url_string
,GError **error
);
Parses an absolute URL.
camel_url_to_string ()
gchar * camel_url_to_string (CamelURL *url
,CamelURLFlags flags
);
Flatten a CamelURL into a string.
camel_url_encode ()
gchar * camel_url_encode (const gchar *part
,const gchar *escape_extra
);
This -encodes
the given URL part and returns the escaped version
in allocated memory, which the caller must free when it is done.
Parameters
part |
a URL part |
|
escape_extra |
additional characters beyond " \"%#<>{}|\^[]`"
to escape (or |
camel_url_decode ()
void
camel_url_decode (gchar *part
);
-decodes
the passed-in URL *in place*. The decoded version is
never longer than the encoded version, so there does not need to
be any additional space at the end of the string.
camel_url_set_protocol ()
void camel_url_set_protocol (CamelURL *url
,const gchar *protocol
);
Set the protocol of a CamelURL.
camel_url_set_user ()
void camel_url_set_user (CamelURL *url
,const gchar *user
);
Set the user of a CamelURL.
camel_url_set_authmech ()
void camel_url_set_authmech (CamelURL *url
,const gchar *authmech
);
Set the authmech of a CamelURL.
camel_url_set_host ()
void camel_url_set_host (CamelURL *url
,const gchar *host
);
Set the hostname of a CamelURL.
camel_url_set_port ()
void camel_url_set_port (CamelURL *url
,gint port
);
Set the port on a CamelURL.
camel_url_set_path ()
void camel_url_set_path (CamelURL *url
,const gchar *path
);
Set the path component of a CamelURL.
camel_url_set_param ()
void camel_url_set_param (CamelURL *url
,const gchar *name
,const gchar *value
);
Set a param on the CamelURL.
camel_url_set_query ()
void camel_url_set_query (CamelURL *url
,const gchar *query
);
Set the query of a CamelURL.
camel_url_set_fragment ()
void camel_url_set_fragment (CamelURL *url
,const gchar *fragment
);
Set the fragment of a CamelURL.