Back to Seed Clases

Soup


Classes

Interfaces

Structs

Unions

Enums

Struct Soup.URI

Import line: Soup = imports.gi.Soup;
GIR File: Soup-2.4.gir
C documentation: SoupURI
Struct : URI
  Show / Hide Inherited methods, properties and signals
A SoupURI represents a (parsed) URI. SoupURI supports RFC 3986 (URI Generic Syntax), and can parse any valid URI. However, libsoup only uses "http" and "https" URIs internally; You can use SOUP_URI_VALID_FOR_HTTP() to test if a SoupURI is a valid HTTP URI. is always all lowercase. (If you parse a URI with a non-lowercase scheme, it will be converted to lowercase.) The macros SOUP_URI_SCHEME_HTTP and SOUP_URI_SCHEME_HTTPS provide the interned values for "http" and "https" and can be compared against URI scheme values. (ie, separated by a colon; RFC 3986 only talks about a single "userinfo" field). Note that password is not included in the output of soup_uri_to_string(). libsoup does not normally use these fields; authentication is handled via SoupSession signals. URI. If the URI doesn't contain a hostname, host will be NULL, and if it doesn't specify a port, port may be 0. However, for "http" and "https" URIs, host is guaranteed to be non-NULL (trying to parse an http URI with no host will return NULL), and to use when it is not specified in the URI). an empty string either; if the input URI has no path, the parsed SoupURI will have a path of "/". soup_form_decode_urlencoded() may be useful for parsing query. Note that path, query, and fragment may contain %-encoded characters. soup_uri_new() calls soup_uri_normalize() on them, but not soup_uri_decode(). This is necessary to ensure that soup_uri_to_string() will generate a URI that has exactly the same meaning as the original. (In theory, SoupURI should leave user, password, and host partially-encoded as well, but this would be more annoying than useful.)
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
 
new Soup.URI ()
Create a new Soup.URI
Create a new Soup.URI
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
GUPnP.DeviceInfo
Method
get_url_base () : Soup.URI
GUPnP.ServiceInfo
Method
get_url_base () : Soup.URI
Soup
Method
Soup.cookie_parse (String header, URI origin) : Soup.Cookie
Parses header and returns a SoupCookie.
Soup.Auth
Method
get_protection_space (URI source_uri) : Array
response to.
Soup.Connection
Property
proxy_uri : Soup.URI
Soup.Connection
Method
get_proxy_uri () : Soup.URI
Soup.Cookie
Method
applies_to_uri (URI uri) : Boolean
Tests if cookie should be sent to uri.
Soup.CookieJar
Method
get_cookies (URI uri, Boolean for_http) : String
to an HTTP operation Retrieves (in Cookie-header form) the list of cookies that would be sent with a request to uri.
Soup.CookieJar
Method
set_cookie (URI uri, String cookie) : none
Adds cookie to jar, exactly as though it had appeared in a Set-Cookie header returned from a request to uri.
Soup.CookieJar
Method
set_cookie_with_first_party (URI uri, URI first_party, String cookie) : none
Adds cookie to jar, exactly as though it had appeared in a Set-Cookie header returned from a request to uri.
Soup.Message
Property
first_party : Soup.URI
Soup.Message
Property
uri : Soup.URI
Soup.Message
Method
new Soup.Message.from_uri (String method, URI uri) : Soup.Message
Create a new Soup.Message
Soup.Message
Method
get_uri () : Soup.URI
Gets msg's URI
Soup.Message
Method
set_uri (URI uri) : none
Sets msg's URI to uri.
Soup.Message
Method
get_first_party () : Soup.URI
Soup.Message
Method
set_first_party (URI first_party) : none
Sets first_party as the main document SoupURI for msg.
Soup.ProxyResolverStatic
Property
proxy_uri : Soup.URI
Soup.ProxyResolverStatic
Method
new Soup.ProxyResolverStatic.c_new (URI proxy_uri) : Soup.ProxyResolverStatic
Create a new Soup.ProxyResolverStatic
Soup.ProxyURIResolver
Method
get_proxy_uri_async (URI uri, MainContext async_context, Cancellable cancellable, Function callback, void* user_data) : none
Asynchronously determines a proxy URI to use for msg and calls
Soup.ProxyURIResolver
Method
get_proxy_uri_sync (URI uri, Cancellable cancellable, URI proxy_uri) : Number
Synchronously determines a proxy URI to use for uri.
Soup.Session
Property
proxy_uri : Soup.URI
Soup.Session
Method
prepare_for_uri (URI uri) : none
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Tue Jun 22 2010 16:35:00 GMT+0800 (HKT)