Constants¶
Details¶
- Soup.ADDRESS_ANY_PORT = 0¶
This can be passed to any
Soup.Addressmethod that expects a port, to indicate that you don’t care what port is used.
- Soup.ADDRESS_FAMILY = 'family'¶
Alias for the
Soup.Address:familyproperty. (TheSoup.AddressFamilyfor this address.)
- Soup.ADDRESS_NAME = 'name'¶
Alias for the
Soup.Address:nameproperty. (The hostname for this address.)
- Soup.ADDRESS_PHYSICAL = 'physical'¶
An alias for the
Soup.Address:physicalproperty. (The stringified IP address for this address.)
- Soup.ADDRESS_PORT = 'port'¶
An alias for the
Soup.Address:portproperty. (The port for this address.)
- Soup.ADDRESS_PROTOCOL = 'protocol'¶
Alias for the
Soup.Address:protocolproperty. (The URI scheme used with this address.)
- Soup.ADDRESS_SOCKADDR = 'sockaddr'¶
An alias for the
Soup.Address:sockaddrproperty. (A pointer to the struct sockaddr for this address.)
- Soup.AUTH_DOMAIN_ADD_PATH = 'add-path'¶
Alias for the
Soup.AuthDomain:add-pathproperty. (Shortcut for callingSoup.AuthDomain.add_path().)
- Soup.AUTH_DOMAIN_BASIC_AUTH_CALLBACK = 'auth-callback'¶
Alias for the
Soup.AuthDomainBasic:auth-callbackproperty. (TheSoup.AuthDomainBasicAuthCallback.)
- Soup.AUTH_DOMAIN_BASIC_AUTH_DATA = 'auth-data'¶
Alias for the
Soup.AuthDomainBasic:auth-dataproperty. (The data to pass to theSoup.AuthDomainBasicAuthCallback.)
- Soup.AUTH_DOMAIN_DIGEST_AUTH_CALLBACK = 'auth-callback'¶
Alias for the
Soup.AuthDomainDigest:auth-callbackproperty. (TheSoup.AuthDomainDigestAuthCallback.)
- Soup.AUTH_DOMAIN_DIGEST_AUTH_DATA = 'auth-data'¶
Alias for the
Soup.AuthDomainDigest:auth-callbackproperty. (TheSoup.AuthDomainDigestAuthCallback.)
- Soup.AUTH_DOMAIN_FILTER = 'filter'¶
Alias for the
Soup.AuthDomain:filterproperty. (TheSoup.AuthDomainFilterfor the domain.)
- Soup.AUTH_DOMAIN_FILTER_DATA = 'filter-data'¶
Alias for the
Soup.AuthDomain:filter-dataproperty. (Data to pass to theSoup.AuthDomainFilter.)
- Soup.AUTH_DOMAIN_GENERIC_AUTH_CALLBACK = 'generic-auth-callback'¶
Alias for the
Soup.AuthDomain:generic-auth-callbackproperty. (TheSoup.AuthDomainGenericAuthCallback.)
- Soup.AUTH_DOMAIN_GENERIC_AUTH_DATA = 'generic-auth-data'¶
Alias for the
Soup.AuthDomain:generic-auth-dataproperty. (The data to pass to theSoup.AuthDomainGenericAuthCallback.)
- Soup.AUTH_DOMAIN_PROXY = 'proxy'¶
Alias for the
Soup.AuthDomain:proxyproperty. (Whether or not this is a proxy auth domain.)
- Soup.AUTH_DOMAIN_REALM = 'realm'¶
Alias for the
Soup.AuthDomain:realmproperty. (The realm of this auth domain.)
- Soup.AUTH_DOMAIN_REMOVE_PATH = 'remove-path'¶
Alias for the
Soup.AuthDomain:remove-pathproperty. (Shortcut for callingSoup.AuthDomain.remove_path().)
- Soup.AUTH_HOST = 'host'¶
An alias for the
Soup.Auth:hostproperty. (The host being authenticated to.)
- Soup.AUTH_IS_AUTHENTICATED = 'is-authenticated'¶
An alias for the
Soup.Auth:is-authenticatedproperty. (Whether or not the auth has been authenticated.)
- Soup.AUTH_IS_FOR_PROXY = 'is-for-proxy'¶
An alias for the
Soup.Auth:is-for-proxyproperty. (Whether or not the auth is for a proxy server.)
- Soup.AUTH_SCHEME_NAME = 'scheme-name'¶
An alias for the
Soup.Auth:scheme-nameproperty. (The authentication scheme name.)
- Soup.CHAR_HTTP_CTL = 16¶
- Soup.CHAR_HTTP_SEPARATOR = 8¶
- Soup.CHAR_URI_GEN_DELIMS = 2¶
- Soup.CHAR_URI_PERCENT_ENCODED = 1¶
- Soup.CHAR_URI_SUB_DELIMS = 4¶
- Soup.COOKIE_JAR_ACCEPT_POLICY = 'accept-policy'¶
Alias for the
Soup.CookieJar:accept-policyproperty.New in version 2.30.
- Soup.COOKIE_JAR_DB_FILENAME = 'filename'¶
Alias for the
Soup.CookieJarDB:filenameproperty. (The cookie-storage filename.)
- Soup.COOKIE_JAR_READ_ONLY = 'read-only'¶
Alias for the
Soup.CookieJar:read-onlyproperty. (Whether or not the cookie jar is read-only.)
- Soup.COOKIE_JAR_TEXT_FILENAME = 'filename'¶
Alias for the
Soup.CookieJarText:filenameproperty. (The cookie-storage filename.)
- Soup.COOKIE_MAX_AGE_ONE_DAY = 0¶
A constant corresponding to 1 day, for use with
Soup.Cookie.new() andSoup.Cookie.set_max_age().New in version 2.24.
- Soup.COOKIE_MAX_AGE_ONE_HOUR = 3600¶
A constant corresponding to 1 hour, for use with
Soup.Cookie.new() andSoup.Cookie.set_max_age().New in version 2.24.
- Soup.COOKIE_MAX_AGE_ONE_WEEK = 0¶
A constant corresponding to 1 week, for use with
Soup.Cookie.new() andSoup.Cookie.set_max_age().New in version 2.24.
- Soup.COOKIE_MAX_AGE_ONE_YEAR = 0¶
A constant corresponding to 1 year, for use with
Soup.Cookie.new() andSoup.Cookie.set_max_age().New in version 2.24.
- Soup.FORM_MIME_TYPE_MULTIPART = 'multipart/form-data'¶
A macro containing the value
"multipart/form-data"; the MIME type used for posting form data that contains files to be uploaded.New in version 2.26.
- Soup.FORM_MIME_TYPE_URLENCODED = 'application/x-www-form-urlencoded'¶
A macro containing the value
"application/x-www-form-urlencoded"; the default MIME type for POSTing HTML form data.New in version 2.26.
- Soup.HSTS_ENFORCER_DB_FILENAME = 'filename'¶
- Soup.HSTS_POLICY_MAX_AGE_PAST = 0¶
- Soup.LOGGER_LEVEL = 'level'¶
Alias for the
Soup.Logger:levelproperty, qv.New in version 2.56.
- Soup.LOGGER_MAX_BODY_SIZE = 'max-body-size'¶
Alias for the
Soup.Logger:max-body-sizeproperty, qv.New in version 2.56.
- Soup.MAJOR_VERSION = 2¶
Like
Soup.get_major_version(), but from the headers used at application compile time, rather than from the library linked against at application run time.New in version 2.42.
- Soup.MESSAGE_FIRST_PARTY = 'first-party'¶
Alias for the
Soup.Message:first-partyproperty. (TheSoup.URIloaded in the application when the message was queued.)New in version 2.30.
- Soup.MESSAGE_FLAGS = 'flags'¶
Alias for the
Soup.Message:flagsproperty. (The message’sSoup.MessageFlags.)
- Soup.MESSAGE_HTTP_VERSION = 'http-version'¶
Alias for the
Soup.Message:http-versionproperty. (The message’sSoup.HTTPVersion.)
- Soup.MESSAGE_IS_TOP_LEVEL_NAVIGATION = 'is-top-level-navigation'¶
- Soup.MESSAGE_METHOD = 'method'¶
Alias for the
Soup.Message:methodproperty. (The message’s HTTP method.)
- Soup.MESSAGE_PRIORITY = 'priority'¶
Sets the priority of the
Soup.Message. SeeSoup.Message.set_priority() for further details.New in version 2.44.
- Soup.MESSAGE_REASON_PHRASE = 'reason-phrase'¶
Alias for the
Soup.Message:reason-phraseproperty. (The message’s HTTP response reason phrase.)
- Soup.MESSAGE_REQUEST_BODY = 'request-body'¶
Alias for the
Soup.Message:request-bodyproperty. (The message’s HTTP request body.)
- Soup.MESSAGE_REQUEST_BODY_DATA = 'request-body-data'¶
Alias for the
Soup.Message:request-body-dataproperty. (The message’s HTTP request body, as aGLib.Bytes.)New in version 2.46.
- Soup.MESSAGE_REQUEST_HEADERS = 'request-headers'¶
Alias for the
Soup.Message:request-headersproperty. (The message’s HTTP request headers.)
- Soup.MESSAGE_RESPONSE_BODY = 'response-body'¶
Alias for the
Soup.Message:response-bodyproperty. (The message’s HTTP response body.)
- Soup.MESSAGE_RESPONSE_BODY_DATA = 'response-body-data'¶
Alias for the
Soup.Message:response-body-dataproperty. (The message’s HTTP response body, as aGLib.Bytes.)New in version 2.46.
- Soup.MESSAGE_RESPONSE_HEADERS = 'response-headers'¶
Alias for the
Soup.Message:response-headersproperty. (The message’s HTTP response headers.)
- Soup.MESSAGE_SERVER_SIDE = 'server-side'¶
Alias for the
Soup.Message:server-sideproperty. (Trueif the message was created bySoup.Server.)
- Soup.MESSAGE_SITE_FOR_COOKIES = 'site-for-cookies'¶
- Soup.MESSAGE_STATUS_CODE = 'status-code'¶
Alias for the
Soup.Message:status-codeproperty. (The message’s HTTP response status code.)
- Soup.MESSAGE_TLS_CERTIFICATE = 'tls-certificate'¶
Alias for the
Soup.Message:tls-certificateproperty. (The TLS certificate associated with the message, if any.)New in version 2.34.
- Soup.MESSAGE_TLS_ERRORS = 'tls-errors'¶
Alias for the
Soup.Message:tls-errorsproperty. (The verification errors onSoup.Message:tls-certificate.)New in version 2.34.
- Soup.MESSAGE_URI = 'uri'¶
Alias for the
Soup.Message:uriproperty. (The message’sSoup.URI.)
- Soup.MICRO_VERSION = 3¶
Like
Soup.get_micro_version(), but from the headers used at application compile time, rather than from the library linked against at application run time.New in version 2.42.
- Soup.MINOR_VERSION = 74¶
Like
Soup.get_minor_version(), but from the headers used at application compile time, rather than from the library linked against at application run time.New in version 2.42.
- Soup.REQUEST_SESSION = 'session'¶
Alias for the
Soup.Request:sessionproperty, qv.New in version 2.42.
- Soup.REQUEST_URI = 'uri'¶
Alias for the
Soup.Request:uriproperty, qv.New in version 2.42.
- Soup.SERVER_ASYNC_CONTEXT = 'async-context'¶
Alias for the deprecated
Soup.Server:async-contextproperty, qv.Deprecated since version ???: The new API uses the thread-default
GLib.MainContextrather than having an explicitly-specified one.
- Soup.SERVER_HTTPS_ALIASES = 'https-aliases'¶
Alias for the
Soup.Server:https-aliasesproperty, qv.New in version 2.44.
- Soup.SERVER_HTTP_ALIASES = 'http-aliases'¶
Alias for the
Soup.Server:http-aliasesproperty, qv.New in version 2.44.
- Soup.SERVER_INTERFACE = 'interface'¶
Alias for the
Soup.Server:interfaceproperty, qv.Deprecated since version ???:
Soup.Serverscan listen on multiple interfaces at once now. UseSoup.Server.listen(), etc, to listen on an interface, andSoup.Server.get_uris() to see what addresses are being listened on.
- Soup.SERVER_PORT = 'port'¶
Alias for the deprecated
Soup.Server:portproperty, qv.Deprecated since version ???:
Soup.Serverscan listen on multiple interfaces at once now. UseSoup.Server.listen(), etc, to listen on a port, andSoup.Server.get_uris() to see what ports are being listened on.
- Soup.SERVER_RAW_PATHS = 'raw-paths'¶
Alias for the
Soup.Server:raw-pathsproperty. (IfTrue, percent-encoding in the Request-URI path will not be automatically decoded.)
- Soup.SERVER_SERVER_HEADER = 'server-header'¶
Alias for the
Soup.Server:server-headerproperty, qv.
- Soup.SERVER_SSL_CERT_FILE = 'ssl-cert-file'¶
Alias for the
Soup.Server:ssl-cert-fileproperty, qv.Deprecated since version ???: use
Soup.Server:tls-certificateor soup_server_set_ssl_certificate().
- Soup.SERVER_SSL_KEY_FILE = 'ssl-key-file'¶
Alias for the
Soup.Server:ssl-key-fileproperty, qv.Deprecated since version ???: use
Soup.Server:tls-certificateor soup_server_set_ssl_certificate().
- Soup.SERVER_TLS_CERTIFICATE = 'tls-certificate'¶
Alias for the
Soup.Server:tls-certificateproperty, qv.New in version 2.38.
- Soup.SESSION_ACCEPT_LANGUAGE = 'accept-language'¶
Alias for the
Soup.Session:accept-languageproperty, qv.New in version 2.30.
- Soup.SESSION_ACCEPT_LANGUAGE_AUTO = 'accept-language-auto'¶
Alias for the
Soup.Session:accept-language-autoproperty, qv.New in version 2.30.
- Soup.SESSION_ASYNC_CONTEXT = 'async-context'¶
Alias for the
Soup.Session:async-contextproperty, qv.
- Soup.SESSION_HTTPS_ALIASES = 'https-aliases'¶
Alias for the
Soup.Session:https-aliasesproperty, qv.New in version 2.38.
- Soup.SESSION_HTTP_ALIASES = 'http-aliases'¶
Alias for the
Soup.Session:http-aliasesproperty, qv.New in version 2.38.
- Soup.SESSION_IDLE_TIMEOUT = 'idle-timeout'¶
Alias for the
Soup.Session:idle-timeoutproperty, qv.New in version 2.24.
- Soup.SESSION_LOCAL_ADDRESS = 'local-address'¶
Alias for the
Soup.Session:local-addressproperty, qv.New in version 2.42.
- Soup.SESSION_MAX_CONNS = 'max-conns'¶
Alias for the
Soup.Session:max-connsproperty, qv.
- Soup.SESSION_MAX_CONNS_PER_HOST = 'max-conns-per-host'¶
Alias for the
Soup.Session:max-conns-per-hostproperty, qv.
- Soup.SESSION_PROXY_RESOLVER = 'proxy-resolver'¶
Alias for the
Soup.Session:proxy-resolverproperty, qv.
- Soup.SESSION_PROXY_URI = 'proxy-uri'¶
Alias for the
Soup.Session:proxy-uriproperty, qv.
- Soup.SESSION_SSL_CA_FILE = 'ssl-ca-file'¶
Alias for the
Soup.Session:ssl-ca-fileproperty, qv.
- Soup.SESSION_SSL_STRICT = 'ssl-strict'¶
Alias for the
Soup.Session:ssl-strictproperty, qv.New in version 2.30.
- Soup.SESSION_SSL_USE_SYSTEM_CA_FILE = 'ssl-use-system-ca-file'¶
Alias for the
Soup.Session:ssl-use-system-ca-fileproperty, qv.New in version 2.38.
- Soup.SESSION_TIMEOUT = 'timeout'¶
Alias for the
Soup.Session:timeoutproperty, qv.
- Soup.SESSION_TLS_DATABASE = 'tls-database'¶
Alias for the
Soup.Session:tls-databaseproperty, qv.New in version 2.38.
- Soup.SESSION_TLS_INTERACTION = 'tls-interaction'¶
Alias for the
Soup.Session:tls-interactionproperty, qv.New in version 2.48.
- Soup.SESSION_USER_AGENT = 'user-agent'¶
Alias for the
Soup.Session:user-agentproperty, qv.
- Soup.SESSION_USE_NTLM = 'use-ntlm'¶
Alias for the
Soup.Session:use-ntlmproperty, qv.
- Soup.SESSION_USE_THREAD_CONTEXT = 'use-thread-context'¶
Alias for the
Soup.Session:use-thread-contextproperty, qv.New in version 2.38.
- Soup.SOCKET_ASYNC_CONTEXT = 'async-context'¶
Alias for the
Soup.Socket:async-contextproperty. (The socket’sGLib.MainContext.)
- Soup.SOCKET_FLAG_NONBLOCKING = 'non-blocking'¶
Alias for the
Soup.Socket:non-blockingproperty. (Whether or not the socket uses non-blocking I/O.)
- Soup.SOCKET_IS_SERVER = 'is-server'¶
Alias for the
Soup.Socket:is-serverproperty, qv.
- Soup.SOCKET_LOCAL_ADDRESS = 'local-address'¶
Alias for the
Soup.Socket:local-addressproperty. (Address of local end of socket.)
- Soup.SOCKET_REMOTE_ADDRESS = 'remote-address'¶
Alias for the
Soup.Socket:remote-addressproperty. (Address of remote end of socket.)
- Soup.SOCKET_SSL_CREDENTIALS = 'ssl-creds'¶
Alias for the
Soup.Socket:ssl-credsproperty. (SSL credential information.)
- Soup.SOCKET_SSL_FALLBACK = 'ssl-fallback'¶
Alias for the
Soup.Socket:ssl-fallbackproperty.
- Soup.SOCKET_SSL_STRICT = 'ssl-strict'¶
Alias for the
Soup.Socket:ssl-strictproperty.
- Soup.SOCKET_TIMEOUT = 'timeout'¶
Alias for the
Soup.Socket:timeoutproperty. (The timeout in seconds for blocking socket I/O operations.)
- Soup.SOCKET_TLS_CERTIFICATE = 'tls-certificate'¶
Alias for the
Soup.Socket:tls-certificateproperty. Note that this property’s value is only useful if the socket is for a TLS connection, and only reliable after some data has been transferred to or from it.New in version 2.34.
- Soup.SOCKET_TLS_ERRORS = 'tls-errors'¶
Alias for the
Soup.Socket:tls-errorsproperty. Note that this property’s value is only useful if the socket is for a TLS connection, and only reliable after some data has been transferred to or from it.New in version 2.34.
- Soup.SOCKET_TRUSTED_CERTIFICATE = 'trusted-certificate'¶
Alias for the
Soup.Socket:trusted-certificateproperty.
- Soup.SOCKET_USE_THREAD_CONTEXT = 'use-thread-context'¶
Alias for the
Soup.Socket:use-thread-contextproperty. (UseGLib.MainContext.get_thread_default())New in version 2.38.
- Soup.VERSION_MIN_REQUIRED = 2¶
A macro that should be defined by the user prior to including libsoup.h. The definition should be one of the predefined libsoup version macros: %SOUP_VERSION_2_24, %SOUP_VERSION_2_26, …
This macro defines the earliest version of libsoup that the package is required to be able to compile against.
If the compiler is configured to warn about the use of deprecated functions, then using functions that were deprecated in version
Soup.VERSION_MIN_REQUIREDor earlier will cause warnings (but using functions deprecated in later releases will not).New in version 2.42.