Flags

Details

class Soup.Cacheability(value)

Bases: GObject.GFlags

Indicates if a message should or shouldn’t be cached.

CACHEABLE = 1

The message should be cached

UNCACHEABLE = 2

The message shouldn’t be cached

INVALIDATES = 4

The messages cache should be invalidated

VALIDATES = 8

The messages cache should be updated

class Soup.Expectation(value)

Bases: GObject.GFlags

Represents the parsed value of the “Expect” header.

UNRECOGNIZED = 1

any unrecognized expectation

CONTINUE = 2

“100-continue”

class Soup.MessageFlags(value)

Bases: GObject.GFlags

Various flags that can be set on a Soup.Message to alter its behavior.

DO_NOT_USE_AUTH_CACHE = 16

The [class`AuthManager`] should not use the credentials cache for this message, neither to use cached credentials to automatically authenticate this message nor to cache the credentials after the message is successfully authenticated. This applies to both server and proxy authentication. Note that [signal`Message`::authenticate] signal will be emitted, if you want to disable authentication for a message use [method`Message`.disable_feature] passing #SOUP_TYPE_AUTH_MANAGER instead.

NO_REDIRECT = 2

The session should not follow redirect (3xx) responses received by this message.

COLLECT_METRICS = 32

Metrics will be collected for this message.

NEW_CONNECTION = 4

Requests that the message should be sent on a newly-created connection, not reusing an existing persistent connection. Note that messages with non-idempotent [property`Message`:method]s behave this way by default, unless Soup.MessageFlags.IDEMPOTENT is set.

IDEMPOTENT = 8

The message is considered idempotent, regardless its [property`Message`:method], and allows reuse of existing idle connections, instead of always requiring a new one, unless Soup.MessageFlags.NEW_CONNECTION is set.

class Soup.ServerListenOptions(value)

Bases: GObject.GFlags

Options to pass to [method`Server`.listen], etc.

Soup.ServerListenOptions.IPV4_ONLY and Soup.ServerListenOptions.IPV6_ONLY only make sense with [method`Server`.listen_all] and [method`Server`.listen_local], not plain [method`Server`.listen] (which simply listens on whatever kind of socket you give it). And you cannot specify both of them in a single call.

HTTPS = 1

Listen for https connections rather than plain http.

IPV4_ONLY = 2

Only listen on IPv4 interfaces.

IPV6_ONLY = 4

Only listen on IPv6 interfaces.