Import line: | Soup = imports.gi.Soup; |
GIR File: | Soup-2.4.gir |
C documentation: | Soup |
Namespace : | Soup |
Show / Hide Inherited methods, properties and signals |
Properties | |
---|---|
Number Soup.ADDRESS_ANY_PORT : 0
|
|
String Soup.ADDRESS_FAMILY : family
|
|
String Soup.ADDRESS_NAME : name
|
|
String Soup.ADDRESS_PHYSICAL : physical
|
|
String Soup.ADDRESS_PORT : port
|
|
String Soup.ADDRESS_SOCKADDR : sockaddr
|
|
Number Soup.AUTH_BASIC_H : 1
|
|
Number Soup.AUTH_DIGEST_H : 1
|
|
String Soup.AUTH_DOMAIN_ADD_PATH : add-path
|
|
String Soup.AUTH_DOMAIN_BASIC_AUTH_CALLBACK : auth-callback
|
|
String Soup.AUTH_DOMAIN_BASIC_AUTH_DATA : auth-data
|
|
Number Soup.AUTH_DOMAIN_BASIC_H : 1
|
|
String Soup.AUTH_DOMAIN_DIGEST_AUTH_CALLBACK : auth-callback
|
|
String Soup.AUTH_DOMAIN_DIGEST_AUTH_DATA : auth-data
|
|
Number Soup.AUTH_DOMAIN_DIGEST_H : 1
|
|
String Soup.AUTH_DOMAIN_FILTER : filter
|
|
String Soup.AUTH_DOMAIN_FILTER_DATA : filter-data
|
|
String Soup.AUTH_DOMAIN_GENERIC_AUTH_CALLBACK : generic-auth-callback
|
|
String Soup.AUTH_DOMAIN_GENERIC_AUTH_DATA : generic-auth-data
|
|
Number Soup.AUTH_DOMAIN_H : 1
|
|
String Soup.AUTH_DOMAIN_PROXY : proxy
|
|
String Soup.AUTH_DOMAIN_REALM : realm
|
|
String Soup.AUTH_DOMAIN_REMOVE_PATH : remove-path
|
|
Number Soup.AUTH_H : 1
|
|
String Soup.AUTH_HOST : host
|
|
String Soup.AUTH_IS_AUTHENTICATED : is-authenticated
|
|
String Soup.AUTH_IS_FOR_PROXY : is-for-proxy
|
|
Number Soup.AUTH_MANAGER_H : 1
|
|
Number Soup.AUTH_MANAGER_NTLM_H : 1
|
|
Number Soup.AUTH_NTLM_H : 1
|
|
String Soup.AUTH_REALM : realm
|
|
String Soup.AUTH_SCHEME_NAME : scheme-name
|
|
Number Soup.CHAR_HTTP_CTL : 16
|
|
Number Soup.CHAR_HTTP_SEPARATOR : 8
|
|
Number Soup.CHAR_URI_GEN_DELIMS : 2
|
|
Number Soup.CHAR_URI_PERCENT_ENCODED : 1
|
|
Number Soup.CHAR_URI_SUB_DELIMS : 4
|
|
String Soup.CODING_DIRECTION : direction
|
|
Number Soup.CODING_GZIP_H : 1
|
|
Number Soup.CODING_H : 1
|
|
String Soup.CONNECTION_ASYNC_CONTEXT : async-context
|
|
Number Soup.CONNECTION_H : 1
|
|
String Soup.CONNECTION_IDLE_TIMEOUT : idle-timeout
|
|
String Soup.CONNECTION_PROXY_URI : proxy-uri
|
|
String Soup.CONNECTION_REMOTE_ADDRESS : remote-address
|
|
String Soup.CONNECTION_SSL_CREDENTIALS : ssl-creds
|
|
String Soup.CONNECTION_SSL_STRICT : ssl-strict
|
|
String Soup.CONNECTION_STATE : state
|
|
String Soup.CONNECTION_TIMEOUT : timeout
|
|
String Soup.CONNECTION_TUNNEL_ADDRESS : tunnel-address
|
|
Number Soup.CONTENT_DECODER_H : 1
|
|
Number Soup.CONTENT_SNIFFER_H : 1
|
|
Number Soup.COOKIE_H : 1
|
|
String Soup.COOKIE_JAR_ACCEPT_POLICY : accept-policy
|
|
Number Soup.COOKIE_JAR_H : 1
|
|
String Soup.COOKIE_JAR_READ_ONLY : read-only
|
|
String Soup.COOKIE_JAR_TEXT_FILENAME : filename
|
|
Number Soup.COOKIE_JAR_TEXT_H : 1
|
|
Number Soup.COOKIE_MAX_AGE_ONE_DAY : 0
|
|
Number Soup.COOKIE_MAX_AGE_ONE_HOUR : 3600
|
|
Number Soup.COOKIE_MAX_AGE_ONE_WEEK : 0
|
|
Number Soup.COOKIE_MAX_AGE_ONE_YEAR : 0
|
|
Number Soup.DATE_H : 1
|
|
Number Soup.FORM_H : 1
|
|
String Soup.FORM_MIME_TYPE_MULTIPART : multipart/form-data
|
|
String Soup.FORM_MIME_TYPE_URLENCODED : application/x-www-form-urlencoded
|
|
Number Soup.HEADERS_H : 1
|
|
Number Soup.LOGGER_H : 1
|
|
Number Soup.MESSAGE_BODY_H : 1
|
|
String Soup.MESSAGE_FIRST_PARTY : first-party
|
|
String Soup.MESSAGE_FLAGS : flags
|
|
Number Soup.MESSAGE_H : 1
|
|
Number Soup.MESSAGE_HEADERS_H : 1
|
|
String Soup.MESSAGE_HTTP_VERSION : http-version
|
|
Number Soup.MESSAGE_IO_EOL_LEN : 2
|
|
String Soup.MESSAGE_METHOD : method
|
|
Number Soup.MESSAGE_PRIVATE_H : 1
|
|
Number Soup.MESSAGE_QUEUE_H : 1
|
|
String Soup.MESSAGE_REASON_PHRASE : reason-phrase
|
|
String Soup.MESSAGE_REQUEST_BODY : request-body
|
|
String Soup.MESSAGE_REQUEST_HEADERS : request-headers
|
|
String Soup.MESSAGE_RESPONSE_BODY : response-body
|
|
String Soup.MESSAGE_RESPONSE_HEADERS : response-headers
|
|
String Soup.MESSAGE_SERVER_SIDE : server-side
|
|
String Soup.MESSAGE_STATUS_CODE : status-code
|
|
String Soup.MESSAGE_URI : uri
|
|
Number Soup.METHOD_H : 1
|
|
Number Soup.MISC_H : 1
|
|
Number Soup.MULTIPART_H : 1
|
|
Number Soup.PASSWORD_MANAGER_H : 1
|
|
Number Soup.PATH_MAP_H : 1
|
|
Number Soup.PROXY_RESOLVER_H : 1
|
|
Number Soup.PROXY_RESOLVER_STATIC_H : 1
|
|
Number Soup.PROXY_URI_RESOLVER_H : 1
|
|
String Soup.SERVER_ASYNC_CONTEXT : async-context
|
|
Number Soup.SERVER_H : 1
|
|
String Soup.SERVER_INTERFACE : interface
|
|
String Soup.SERVER_PORT : port
|
|
String Soup.SERVER_RAW_PATHS : raw-paths
|
|
String Soup.SERVER_SERVER_HEADER : server-header
|
|
String Soup.SERVER_SSL_CERT_FILE : ssl-cert-file
|
|
String Soup.SERVER_SSL_KEY_FILE : ssl-key-file
|
|
String Soup.SESSION_ACCEPT_LANGUAGE : accept-language
|
|
String Soup.SESSION_ACCEPT_LANGUAGE_AUTO : accept-language-auto
|
|
String Soup.SESSION_ADD_FEATURE : add-feature
|
|
String Soup.SESSION_ADD_FEATURE_BY_TYPE : add-feature-by-type
|
|
String Soup.SESSION_ASYNC_CONTEXT : async-context
|
|
Number Soup.SESSION_ASYNC_H : 1
|
|
Number Soup.SESSION_FEATURE_H : 1
|
|
Number Soup.SESSION_H : 1
|
|
String Soup.SESSION_IDLE_TIMEOUT : idle-timeout
|
|
String Soup.SESSION_MAX_CONNS : max-conns
|
|
String Soup.SESSION_MAX_CONNS_PER_HOST : max-conns-per-host
|
|
String Soup.SESSION_PROXY_URI : proxy-uri
|
|
String Soup.SESSION_REMOVE_FEATURE_BY_TYPE : remove-feature-by-type
|
|
String Soup.SESSION_SSL_CA_FILE : ssl-ca-file
|
|
String Soup.SESSION_SSL_STRICT : ssl-strict
|
|
Number Soup.SESSION_SYNC_H : 1
|
|
String Soup.SESSION_TIMEOUT : timeout
|
|
String Soup.SESSION_USER_AGENT : user-agent
|
|
String Soup.SESSION_USE_NTLM : use-ntlm
|
|
String Soup.SOCKET_ASYNC_CONTEXT : async-context
|
|
String Soup.SOCKET_FLAG_NONBLOCKING : non-blocking
|
|
Number Soup.SOCKET_H : 1
|
|
String Soup.SOCKET_IS_SERVER : is-server
|
|
String Soup.SOCKET_LOCAL_ADDRESS : local-address
|
|
String Soup.SOCKET_REMOTE_ADDRESS : remote-address
|
|
String Soup.SOCKET_SSL_CREDENTIALS : ssl-creds
|
|
String Soup.SOCKET_SSL_STRICT : ssl-strict
|
|
String Soup.SOCKET_TIMEOUT : timeout
|
|
String Soup.SOCKET_TRUSTED_CERTIFICATE : trusted-certificate
|
|
Number Soup.STATUS_H : 1
|
|
Number Soup.TYPES_H : 1
|
|
Number Soup.URI_H : 1
|
|
Number Soup.VALUE_UTILS_H : 1
|
|
Number Soup.XMLRPC_H : 1
|
None |
Method / Constructor | Defined By | |
---|---|---|
NULL for the default context Adds function to be executed from inside async_context with the default priority.
NULL for the default context Adds function to be executed from inside async_context with the default priority. Use this when you want to complete an action in with g_source_destroy().
|
Soup | |
NULL for the default context Adds an idle event as with g_idle_add(), but using the given If you want function to run "right away", use soup_add_completion(), since that sets a higher priority on the GSource than soup_add_idle() does.
NULL for the default context Adds an idle event as with g_idle_add(), but using the given If you want function to run "right away", use soup_add_completion(), since that sets a higher priority on the GSource than soup_add_idle() does. with g_source_destroy().
|
Soup | |
Soup.add_io_watch
(MainContext async_context, IOChannel chan, IOCondition condition, Function function, void* data)
:
GLib.Source
NULL for the default context Adds an I/O watch as with g_io_add_watch(), but using the given with g_source_destroy().
NULL for the default context Adds an I/O watch as with g_io_add_watch(), but using the given with g_source_destroy().
|
Soup | |
Soup.add_timeout
(MainContext async_context, Number interval, Function function, void* data)
:
GLib.Source
NULL for the default context Adds a timeout as with g_timeout_add(), but using the given with g_source_destroy().
NULL for the default context Adds a timeout as with g_timeout_add(), but using the given with g_source_destroy().
|
Soup | |
Parses header and returns a SoupCookie.
Parses header and returns a SoupCookie. (If header contains multiple cookies, only the first one will be parsed.) If header does not have "path" or "domain" attributes, they will be defaulted from origin. If origin is NULL, path will default to "/", but domain will be left as NULL. Note that this is not a valid state for a SoupCookie, and you will need to fill in some appropriate string for the domain if you want to actually make use of the cookie. parsed, or contained an illegal "domain" attribute for a cookie originating from origin.
|
Soup | |
Parses msg's Cookie request header and returns a GSList of SoupCookies.
Parses msg's Cookie request header and returns a GSList of SoupCookies. As the "Cookie" header, unlike "Set-Cookie", only contains cookie names and values, none of the other SoupCookie fields will be filled in. (Thus, you can't generally pass a cookie returned from this method directly to soup_cookies_to_response().) SoupCookies, which can be freed with soup_cookies_free().
|
Soup | |
Parses msg's Set-Cookie response headers and returns a GSList of SoupCookies.
Parses msg's Set-Cookie response headers and returns a GSList of SoupCookies. Cookies that do not specify "path" or "domain" attributes will have their values defaulted from msg. SoupCookies, which can be freed with soup_cookies_free().
|
Soup | |
Soup | ||
Adds the name and value of each cookie in cookies to msg's "Cookie" request.
Adds the name and value of each cookie in cookies to msg's "Cookie" request. (If msg already has a "Cookie" request header, these cookies will be appended to the cookies already present. Be careful that you do not append the same cookies twice, eg, when requeuing a message.)
|
Soup | |
Appends a "Set-Cookie" response header to msg for each cookie in
Appends a "Set-Cookie" response header to msg for each cookie in
|
Soup | |
Decodes form, which is an urlencoded dataset as defined in the HTML 4.01 spec.
|
Soup | |
Soup.form_decode_multipart
(Message msg, String file_control_name, Array filename, Array content_type, Buffer file)
:
Object
Decodes the "multipart/form-data" request in msg; this is a convenience method for the case when you have a single file upload control in a form.
Decodes the "multipart/form-data" request in msg; this is a convenience method for the case when you have a single file upload control in a form. (Or when you don't have any file upload controls, but are still using "multipart/form-data" anyway.) Pass the name of the file upload control in file_control_name, and soup_form_decode_multipart() will extract the uploaded file data into filename, content_type, and file. All of the other form control data will be returned (as strings, as with soup_form_decode()) in the returned GHashTable. You may pass NULL for filename and/or content_type if you do not care about those fields. soup_form_decode_multipart() may also return NULL in those fields if the client did not provide that information. You must free the returned filename and content-type with g_free(), and the returned file data with soup_buffer_free(). If you have a form with more than one file upload control, you will need to decode it manually, using soup_multipart_new_from_message() and soup_multipart_get_part(). than file_control_name) from msg, which you can free with g_hash_table_destroy(). On error, it will return NULL.
|
Soup | |
Encodes form_data_set into a value of type "application/x-www-form-urlencoded", as defined in the HTML 4.01 spec.
Encodes form_data_set into a value of type "application/x-www-form-urlencoded", as defined in the HTML 4.01 spec. Unlike soup_form_encode_hash(), this preserves the ordering of the form elements, which may be required in some situations.
|
Soup | |
name/value pairs (as strings) Encodes form_data_set into a value of type "application/x-www-form-urlencoded", as defined in the HTML 4.01 spec.
name/value pairs (as strings) Encodes form_data_set into a value of type "application/x-www-form-urlencoded", as defined in the HTML 4.01 spec. Note that the HTML spec states that "The control names/values are listed in the order they appear in the document." Since this method takes a hash table, it cannot enforce that; if you care about the ordering of the form fields, use soup_form_encode_datalist().
|
Soup | |
Creates a new SoupMessage and sets it up to send form_data_set to
Creates a new SoupMessage and sets it up to send form_data_set to
|
Soup | |
Creates a new SoupMessage and sets it up to send form_data_set to
Creates a new SoupMessage and sets it up to send form_data_set to
|
Soup | |
Creates a new SoupMessage and sets it up to send multipart to To send a
Creates a new SoupMessage and sets it up to send multipart to To send a
|
Soup | |
soup_header_parse_list() Parses header to see if it contains the token token (matched case-insensitively).
|
Soup | |
Soup.header_free_list
(Array list)
:
none
soup_header_parse_quality_list() Frees list.
soup_header_parse_quality_list() Frees list.
|
Soup | |
Soup.header_free_param_list
(Object param_list)
:
none
or soup_header_parse_semi_param_list() Frees param_list.
or soup_header_parse_semi_param_list() Frees param_list.
|
Soup | |
Appends something like
Appends something like
|
Soup | |
Appends something like
Appends something like
|
Soup | |
Parses a header whose content is described by RFC2616 as "something", where "something" does not itself contain commas, except as part of quoted-strings.
|
Soup | |
Parses a header which is a comma-delimited list of something like:
Parses a header which is a comma-delimited list of something like:
|
Soup | |
unacceptable values Parses a header whose content is a list of items with optional "qvalue"s (eg, Accept, Accept-Charset, Accept-Encoding, Accept-Language, TE).
unacceptable values Parses a header whose content is a list of items with optional "qvalue"s (eg, Accept, Accept-Charset, Accept-Encoding, Accept-Language, TE). If unacceptable is not NULL, then on return, it will contain the items with qvalue 0. Either way, those items will be removed from the main list. strings), highest-qvalue first.
|
Soup | |
Parses a header which is a semicolon-delimited list of something Tokens that don't have an associated value will still be added to the resulting hash table, but with a NULL value.
Parses a header which is a semicolon-delimited list of something Tokens that don't have an associated value will still be added to the resulting hash table, but with a NULL value. This also handles RFC2231 encoding (which in HTTP is mostly used for giving UTF8-encoded filenames in the Content-Disposition header). with soup_header_free_param_list().
|
Soup | |
and the trailing blank line) Parses the headers of an HTTP request or response in str and stores the results in dest.
and the trailing blank line) Parses the headers of an HTTP request or response in str and stores the results in dest. Beware that dest may be modified even on failure. This is a low-level method; normally you would use soup_headers_parse_request() or soup_headers_parse_response().
|
Soup | |
Soup.headers_parse_request
(String str, Number len, MessageHeaders req_headers, Object out_values)
:
Number
request method request path version Parses the headers of an HTTP request in str and stores the results in req_method, req_path, ver, and req_headers.
request method request path version Parses the headers of an HTTP request in str and stores the results in req_method, req_path, ver, and req_headers. Beware that req_headers may be modified even on failure. HTTP error to be returned to the client if they could not be.
|
Soup | |
Soup.headers_parse_response
(String str, Number len, MessageHeaders headers, Object out_values)
:
Boolean
version the status code the reason phrase Parses the headers of an HTTP response in str and stores the results in ver, status_code, reason_phrase, and headers.
version the status code the reason phrase Parses the headers of an HTTP response in str and stores the results in ver, status_code, reason_phrase, and headers. Beware that headers may be modified even on failure.
|
Soup | |
version the status code the reason phrase Parses the HTTP Status-Line string in status_line into ver, either "\0" or "\r\n".
|
Soup | |
Soup.ssl_free_client_credentials
(SSLCredentials creds)
:
none
soup_ssl_get_client_credentials().
soup_ssl_get_client_credentials(). Frees creds.
|
Soup | |
Soup.ssl_free_server_credentials
(SSLCredentials creds)
:
none
soup_ssl_get_server_credentials().
soup_ssl_get_server_credentials(). Frees creds.
|
Soup | |
Authority certificates.
Authority certificates. Creates an opaque client credentials object which can later be passed to soup_ssl_wrap_iochannel(). If ca_file is non-NULL, any certificate received from a server must be signed by one of the CAs in the file, or an error will be returned. soup_ssl_free_client_credentials().
|
Soup | |
certificate Creates an opaque server credentials object which can later be passed to soup_ssl_wrap_iochannel().
certificate Creates an opaque server credentials object which can later be passed to soup_ssl_wrap_iochannel(). soup_ssl_free_server_credentials().
|
Soup | |
Soup.ssl_wrap_iochannel
(IOChannel sock, Boolean non_blocking, SSLType type, String remote_host, SSLCredentials creds)
:
GLib.IOChannel
This attempts to wrap a new GIOChannel around sock that will SSL-encrypt/decrypt all traffic through it.
This attempts to wrap a new GIOChannel around sock that will SSL-encrypt/decrypt all traffic through it. failure.
|
Soup | |
Looks up the stock HTTP description of status_code.
Looks up the stock HTTP description of status_code. This is used by soup_message_set_status() to get the correct text to go with a given status code.
|
Soup | |
Turns SOUP_STATUS_CANT_RESOLVE into SOUP_STATUS_CANT_RESOLVE_PROXY and SOUP_STATUS_CANT_CONNECT into SOUP_STATUS_CANT_CONNECT_PROXY.
|
Soup | |
Soup | ||
Soup | ||
Soup | ||
This %-encodes the given URI part and returns the escaped version in allocated memory, which the caller must free when it is done.
|
Soup | |
Soup | ||
Soup | ||
%-decodes any "unreserved" characters (or characters in "Unreserved" characters are those that are not allowed to be used for punctuation according to the URI spec.
%-decodes any "unreserved" characters (or characters in "Unreserved" characters are those that are not allowed to be used for punctuation according to the URI spec. For example, letters are unreserved, so soup_uri_normalize() will turn
|
Soup | |
Soup.value_array_new
()
:
GObject.ValueArray
Creates a new GValueArray.
Creates a new GValueArray. (This is just a wrapper around g_value_array_new(), for naming consistency purposes.)
|
Soup | |
Inserts value into hash.
Inserts value into hash. (Unlike with g_hash_table_insert(), both the key and the value are copied).
|
Soup | |
Soup.value_hash_new
()
:
Object
Creates a GHashTable whose keys are strings and whose values are GValue.
Creates a GHashTable whose keys are strings and whose values are GValue.
|
Soup | |
This creates an XML-RPC methodCall and returns it as a string.
This creates an XML-RPC methodCall and returns it as a string. This is the low-level method that soup_xmlrpc_request_new() and soup_xmlrpc_call() are built on. GValueArray, you can just pass its values and n_values fields.) The correspondence between glib types and XML-RPC types is: For structs, use a GHashTable that maps strings to GValue; soup_value_hash_new() and related methods can help with this.
|
Soup | |
This creates a (successful) XML-RPC methodResponse and returns it as a string.
This creates a (successful) XML-RPC methodResponse and returns it as a string. To create a fault response, use soup_xmlrpc_build_fault(). The glib type to XML-RPC type mapping is as with soup_xmlrpc_build_method_call(), qv.
|
Soup | |
Soup.xmlrpc_fault_quark
()
:
Number
|
Soup | |
Parses method_call to get the name and parameters, and returns the parameter values in a GValueArray; see also soup_xmlrpc_extract_method_call(), which is more convenient if you know in advance what the types of the parameters will be.
Parses method_call to get the name and parameters, and returns the parameter values in a GValueArray; see also soup_xmlrpc_extract_method_call(), which is more convenient if you know in advance what the types of the parameters will be.
|
Soup | |
Soup.xmlrpc_parse_method_response
(String method_response, Number length, Object out_values)
:
Boolean
Parses method_response and returns the return value in value.
Parses method_response and returns the return value in value. If will be set to an error of type SOUP_XMLRPC_FAULT, with the error code containing the fault code, and the error message containing the fault string. (If method_response cannot be parsed at all, soup_xmlrpc_parse_method_response() will return FALSE, but error will be unset.) response could not be parsed, or contained a fault.
|
Soup |
None |