MessageFlags#

class MessageFlags#

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

Fields#

class MessageFlags
COLLECT_METRICS#

Metrics will be collected for this message.

DO_NOT_USE_AUTH_CACHE#

The 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 authenticate signal will be emitted, if you want to disable authentication for a message use disable_feature passing SOUP_TYPE_AUTH_MANAGER instead.

IDEMPOTENT#

The message is considered idempotent, regardless its method, and allows reuse of existing idle connections, instead of always requiring a new one, unless SOUP_MESSAGE_NEW_CONNECTION is set.

NEW_CONNECTION#

Requests that the message should be sent on a newly-created connection, not reusing an existing persistent connection. Note that messages with non-idempotent methods behave this way by default, unless SOUP_MESSAGE_IDEMPOTENT is set.

NO_REDIRECT#

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