Constants¶
Details¶
- Soup.COOKIE_MAX_AGE_ONE_DAY = 0¶
A constant corresponding to 1 day.
For use with [ctor`Cookie`.new] and [method`Cookie`.set_max_age].
- Soup.COOKIE_MAX_AGE_ONE_HOUR = 3600¶
A constant corresponding to 1 hour.
For use with [ctor`Cookie`.new] and [method`Cookie`.set_max_age].
- Soup.COOKIE_MAX_AGE_ONE_WEEK = 0¶
A constant corresponding to 1 week.
For use with [ctor`Cookie`.new] and [method`Cookie`.set_max_age].
- Soup.COOKIE_MAX_AGE_ONE_YEAR = 0¶
A constant corresponding to 1 year.
For use with [ctor`Cookie`.new] and [method`Cookie`.set_max_age].
- 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.
- 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.
- Soup.HSTS_POLICY_MAX_AGE_PAST = 0¶
An expiration date that is always in the past.
- Soup.HTTP_URI_FLAGS = 482¶
The set of
GLib.UriFlags
libsoup expects allGLib.Uri
to use.
- Soup.MAJOR_VERSION = 3¶
Like [func`get_major_version`], but from the headers used at application compile time, rather than from the library linked against at application run time.
- Soup.MICRO_VERSION = 4¶
Like [func`get_micro_version`], but from the headers used at application compile time, rather than from the library linked against at application run time.
- Soup.MINOR_VERSION = 4¶
Like [func`get_minor_version`], but from the headers used at application compile time, rather than from the library linked against at application run time.
- 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_REQUIRED
or earlier will cause warnings (but using functions deprecated in later releases will not).