Message
Represents an HTTP message being sent or received.
A #SoupMessage represents an HTTP message that is being sent or received.
You would create a #SoupMessage with ctor@Message.new or ctor@Message.new_from_uri, set up its fields appropriately, and send it.
property@Message:status-code will normally be a enum@Status value, eg, %SOUP_STATUS_OK, though of course it might actually be an unknown status code. property@Message:reason-phrase is the actual text returned from the server, which may or may not correspond to the "standard" description of
Constructors
Creates a new empty #SoupMessage, which will connect to @uri.
Creates a new #SoupMessage and sets it up to send the given @encoded_form to @uri via @method. If @method is "GET", it will include the form data into @uri's query field, and if @method is "POST" or "PUT", it will be set as request body.
Creates a new #SoupMessage and sets it up to send @multipart to
Creates a new empty #SoupMessage, which will connect to @uri.
Creates a new #SoupMessage to send OPTIONS *
to a server. The path of
Properties
The struct@GLib.Uri loaded in the application when the message was queued.
Various message options.
The HTTP protocol version to use.
Whether the message is an OPTIONS ping.
Set when the message is navigating between top level domains.
Sets the priority of the #SoupMessage. See method@Message.set_priority for further details.
The HTTP response reason phrase.
The remote class@Gio.SocketAddress of the connection associated with the message.
The HTTP request headers.
The HTTP response headers.
The Name of TLS ciphersuite negotiated for this message connection.
The peer's class@Gio.TlsCertificate associated with the message.
The verification errors on property@Message:tls-peer-certificate.
The TLS protocol version negotiated for the message connection.
Functions
Adds @flags to the set of @msg's flags.
Adds a signal handler to @msg for @signal.
Adds a signal handler to @msg for @signal.
Emitted during the @msg's connection TLS handshake after an unacceptable TLS certificate has been received.
Emitted when the message requires authentication.
This signal is emitted after signal@Message::got-headers.
Emitted when all HTTP processing is finished for a message.
Emitted after receiving the complete message response body.
Emitted after reading a portion of the message body from the network.
Emitted after receiving the Status-Line and response headers.
Emitted after receiving a 1xx (Informational) response for a (client-side) message.
Emitted when class@HSTSEnforcer has upgraded the protocol for @msg to HTTPS as a result of matching its domain with a HSTS policy.
Emitted to indicate that some network-related event related to @msg has occurred.
Emitted during the @msg's connection TLS handshake when
Emitted during the @msg's connection TLS handshake when
Emitted when a request that was already sent once is now being sent again.
Emitted just before a message is sent.
Emitted immediately after writing the complete body for a message.
Emitted immediately after writing a portion of the message body to the network.
Emitted immediately after writing the request headers for a message.
Disables the actions of iface@SessionFeatures with the given @feature_type (or a subclass of that type) on @msg.
Returns the unique idenfier for the last connection used.
Returns whether HTTP/1 version is currently demanded for the @msg send.
Get the struct@MessageMetrics of @msg.
Gets @msg's site for cookies #GUri.
Get whether iface@SessionFeatures of the given @feature_type (or a subclass of that type) are disabled on @msg.
Determines whether or not @msg's connection can be kept alive for further requests after processing @msg.
Queries if @flags are present in the set of @msg's flags.
Removes @flags from the set of @msg's flags.
Sets whether HTTP/1 version should be used when sending this message. Some connections can still override it, if needed.
Set the request body of a #SoupMessage.
Set the request body of a #SoupMessage from struct@GLib.Bytes.
Sets @site_for_cookies as the policy URL for same-site cookies for @msg.
Sets the @certificate to be used by @msg's connection when a client certificate is requested during the TLS handshake.
Completes a certificate password request.