Soup

object Soup

Skipped during bindings generation

  • class AuthBasic: Missing cType on class

  • class AuthDigest: Missing cType on class

  • class AuthNTLM: Missing cType on class

  • class AuthNegotiate: Missing cType on class

  • parameter filename: filename: Out parameter is not supported

  • function form_encode: Varargs parameter is not supported

  • parameter form_data_set: GLib.Data

  • parameter args: va_list

  • parameter unacceptable: unacceptable: Out parameter is not supported

  • parameter req_method: req_method: Out parameter is not supported

  • parameter ver: ver: Out parameter is not supported

  • parameter ver: ver: Out parameter is not supported

  • function uri_copy: Varargs parameter is not supported

  • parameter content_type: content_type: Out parameter is not supported

  • parameter supported_extensions: GLib.PtrArray parameter of type GObject.TypeClass is not supported

  • parameter supported_extensions: GLib.PtrArray parameter of type GObject.TypeClass is not supported

  • parameter supported_extensions: GLib.PtrArray parameter of type GObject.TypeClass is not supported

  • parameter supported_extensions: GLib.PtrArray parameter of type GObject.TypeClass is not supported

  • record AuthClass: glib type struct are ignored

  • record AuthDomainBasicClass: glib type struct are ignored

  • record AuthDomainClass: glib type struct are ignored

  • record AuthDomainDigestClass: glib type struct are ignored

  • record AuthManagerClass: glib type struct are ignored

  • record CacheClass: glib type struct are ignored

  • record ContentDecoderClass: glib type struct are ignored

  • record ContentSnifferClass: glib type struct are ignored

  • record CookieJarClass: glib type struct are ignored

  • record CookieJarDBClass: glib type struct are ignored

  • record CookieJarTextClass: glib type struct are ignored

  • record HSTSEnforcerClass: glib type struct are ignored

  • record HSTSEnforcerDBClass: glib type struct are ignored

  • record LoggerClass: glib type struct are ignored

  • record MessageClass: glib type struct are ignored

  • record MultipartInputStreamClass: glib type struct are ignored

  • record ServerClass: glib type struct are ignored

  • record ServerMessageClass: glib type struct are ignored

  • record SessionClass: glib type struct are ignored

  • record SessionFeatureInterface: glib type struct are ignored

  • record WebsocketConnectionClass: glib type struct are ignored

  • record WebsocketExtensionClass: glib type struct are ignored

  • record WebsocketExtensionDeflateClass: glib type struct are ignored

  • record WebsocketExtensionManagerClass: glib type struct are ignored

Properties

Link copied to clipboard
const val COOKIE_MAX_AGE_ONE_DAY: <Error class: unknown class> = 0

A constant corresponding to 1 day.

Link copied to clipboard
const val COOKIE_MAX_AGE_ONE_HOUR: <Error class: unknown class> = 3600

A constant corresponding to 1 hour.

Link copied to clipboard
const val COOKIE_MAX_AGE_ONE_WEEK: <Error class: unknown class> = 0

A constant corresponding to 1 week.

Link copied to clipboard
const val COOKIE_MAX_AGE_ONE_YEAR: <Error class: unknown class> = 0

A constant corresponding to 1 year.

Link copied to clipboard

A macro containing the value multipart/form-data; the MIME type used for posting form data that contains files to be uploaded.

Link copied to clipboard

A macro containing the value application/x-www-form-urlencoded; the default MIME type for POSTing HTML form data.

Link copied to clipboard
const val HSTS_POLICY_MAX_AGE_PAST: <Error class: unknown class> = 0

An expiration date that is always in the past.

Link copied to clipboard
const val HTTP_URI_FLAGS: <Error class: unknown class> = 482

The set of #GUriFlags libsoup expects all #GUri to use.

Link copied to clipboard
const val MAJOR_VERSION: <Error class: unknown class> = 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.

Link copied to clipboard
const val MICRO_VERSION: <Error class: unknown class> = 0

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.

Link copied to clipboard
const val MINOR_VERSION: <Error class: unknown class> = 6

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.

Link copied to clipboard
const val VERSION_MIN_REQUIRED: <Error class: unknown class> = 2

A macro that should be defined by the user prior to including libsoup.h.

Functions

Link copied to clipboard
fun checkVersion(major: <Error class: unknown class>, minor: <Error class: unknown class>, micro: <Error class: unknown class>): Boolean

Like func@CHECK_VERSION, but the check for soup_check_version is at runtime instead of compile time.

Link copied to clipboard
fun cookiesFree(cookies: <Error class: unknown class>)

Frees @cookies.

Link copied to clipboard
fun cookiesFromRequest(msg: Message): <Error class: unknown class>

Parses @msg's Cookie request header and returns a struct@GLib.SList of SoupCookies.

Link copied to clipboard
fun cookiesFromResponse(msg: Message): <Error class: unknown class>

Parses @msg's Set-Cookie response headers and returns a struct@GLib.SList of SoupCookies.

Link copied to clipboard
fun cookiesToCookieHeader(cookies: <Error class: unknown class>): String

Serializes a struct@GLib.SList of #SoupCookie into a string suitable for setting as the value of the "Cookie" header.

Link copied to clipboard
fun cookiesToRequest(cookies: <Error class: unknown class>, msg: Message)

Adds the name and value of each cookie in @cookies to @msg's "Cookie" request.

Link copied to clipboard
fun cookiesToResponse(cookies: <Error class: unknown class>, msg: Message)

Appends a "Set-Cookie" response header to @msg for each cookie in

Link copied to clipboard
fun dateTimeNewFromHttpString(dateString: String): <Error class: unknown class>?

Parses @date_string and tries to extract a date from it.

Link copied to clipboard
fun dateTimeToString(date: <Error class: unknown class>, format: DateFormat): String

Converts @date to a string in the format described by @format.

Link copied to clipboard
fun formDecode(encodedForm: String): <Error class: unknown class>

Decodes @form.

Link copied to clipboard
fun formEncodeHash(formDataSet: <Error class: unknown class>): String

Encodes @form_data_set into a value of type "application/x-www-form-urlencoded".

Link copied to clipboard
fun getMajorVersion(): <Error class: unknown class>

Returns the major version number of the libsoup library.

Link copied to clipboard
fun getMicroVersion(): <Error class: unknown class>

Returns the micro version number of the libsoup library.

Link copied to clipboard
fun getMinorVersion(): <Error class: unknown class>

Returns the minor version number of the libsoup library.

Link copied to clipboard
fun headerContains(header: String, token: String): Boolean

Parses @header to see if it contains the token @token (matched case-insensitively).

Link copied to clipboard
fun headerFreeList(list: <Error class: unknown class>)

Frees @list.

Link copied to clipboard
fun headerFreeParamList(paramList: <Error class: unknown class>)

Frees @param_list.

Link copied to clipboard
fun headerGStringAppendParam(string: <Error class: unknown class>, name: String, value: String? = null)

Appends something like name=value to @string, taking care to quote @value if needed, and if so, to escape any quotes or backslashes in @value.

Link copied to clipboard
fun headerGStringAppendParamQuoted(string: <Error class: unknown class>, name: String, value: String)

Appends something like name="value" to

Link copied to clipboard
fun headerParseList(header: String): <Error class: unknown class>

Parses a header whose content is described by RFC2616 as #something.

Link copied to clipboard
fun headerParseParamList(header: String): <Error class: unknown class>

Parses a header which is a comma-delimited list of something like: token [ "=" ( token | quoted-string ) ].

Link copied to clipboard
fun headerParseParamListStrict(header: String): <Error class: unknown class>?

A strict version of func@header_parse_param_list that bails out if there are duplicate parameters.

Link copied to clipboard
fun headerParseSemiParamList(header: String): <Error class: unknown class>

Parses a header which is a semicolon-delimited list of something like: token [ "=" ( token | quoted-string ) ].

Link copied to clipboard
fun headerParseSemiParamListStrict(header: String): <Error class: unknown class>?

A strict version of func@header_parse_semi_param_list that bails out if there are duplicate parameters.

Link copied to clipboard
fun headersParse(str: String, len: <Error class: unknown class>, dest: MessageHeaders): Boolean

Parses the headers of an HTTP request or response in @str and stores the results in @dest.

Link copied to clipboard
fun resolveException(error: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard

Looks whether the @domain passed as argument is a public domain suffix (.org, .com, .co.uk, etc) or not.

Link copied to clipboard
fun tldGetBaseDomain(hostname: String): <Error class: unknown class><String>

Finds the base domain for a given @hostname

Link copied to clipboard
fun uriEqual(uri1: <Error class: unknown class>, uri2: <Error class: unknown class>): Boolean

Tests whether or not @uri1 and @uri2 are equal in all parts.