soup-misc

Name

soup-misc -- 

Synopsis



void        soup_load_config                (gchar *config_file);
void        soup_shutdown                   (void);
void        soup_set_proxy                  (SoupContext *context);
SoupContext* soup_get_proxy                 (void);
void        soup_set_connection_limit       (guint max_conn);
guint       soup_get_connection_limit       (void);
enum        SoupSecurityPolicy;
void        soup_set_security_policy        (SoupSecurityPolicy policy);
SoupSecurityPolicy soup_get_security_policy (void);
void        soup_debug_print_headers        (SoupMessage *req);
void        soup_debug_print_uri            (SoupUri *uri);

Description

Details

soup_load_config ()

void        soup_load_config                (gchar *config_file);

Load the Soup configuration from file. First attempt to load the system configuration from SYSCONFDIR/souprc, then from either the config file name passed in config_file, or from .souprc in the user's home directory.

The first time a message is sent using Soup, the configuration is loaded from the system souprc file, and the user's souprc file.

soup_load_config can be called multiple times. Each time settings will be reset and reread from scratch.


soup_shutdown ()

void        soup_shutdown                   (void);

Shut down the Soup engine.

The pending message queue is flushed by calling soup_message_cancel on all active requests.


soup_set_proxy ()

void        soup_set_proxy                  (SoupContext *context);

Use context as the SoupContext to connect to instead of the actual destination specified in a SoupMessage. Messages will be routed through the proxy host on their way to the actual specified destination. The URL for this context should be of the form: [http|https|socks4|socks5]://<USERNAME>:<PASSWORD>@<PROXYHOST>


soup_get_proxy ()

SoupContext* soup_get_proxy                 (void);

Get the current proxy SoupContext.


soup_set_connection_limit ()

void        soup_set_connection_limit       (guint max_conn);

Set the maximum concurrent connection limit for outgoing requests.


soup_get_connection_limit ()

guint       soup_get_connection_limit       (void);


enum SoupSecurityPolicy

typedef enum {
	SOUP_SECURITY_DOMESTIC = 1,
	SOUP_SECURITY_EXPORT   = 2,
	SOUP_SECURITY_FRANCE   = 3
} SoupSecurityPolicy;


soup_set_security_policy ()

void        soup_set_security_policy        (SoupSecurityPolicy policy);

Set the security policy for all secure SSL connections. The security policy dictates which algorithms and encryption levels can be used in order to conform to your country's security legislation.


soup_get_security_policy ()

SoupSecurityPolicy soup_get_security_policy (void);


soup_debug_print_headers ()

void        soup_debug_print_headers        (SoupMessage *req);


soup_debug_print_uri ()

void        soup_debug_print_uri            (SoupUri *uri);