[ CCode ( type_id = "soup_message_get_type ()" ) ]
public sealed class Message : Object
Represents an HTTP message being sent or received.
A [class@Message] represents an HTTP message that is being sent or received.
You would create a [class@Message] 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 status_code. At any rate, it is almost certainly not localized,
and not very descriptive even if it is in the user's language; you should not use [property@Message:reason-phrase] in user-visible
messages. Rather, you should look at [property@Message:status-code], and determine an end-user-appropriate message based on that and on
what you were trying to do.
Note that libsoup's terminology here does not quite match the HTTP specification: in RFC 2616, an "HTTP-message" is *either* a Request, *or* a Response. In libsoup, a [class@Message] combines both the request and the response.
uri
.
encoded_form to uri via method.
multipart
to uri_string via POST.
uri
.
flags to the set of this
's flags.
signal.
signal.
feature_type (or a subclass of that type) on this.
feature_type
(or a subclass of that type) are disabled on this.
flags are present in the set of
this's flags.
flags from the set of
this's flags.
first_party as the main document
Uri for this.
method.
site_for_cookies as the policy URL for same-site
cookies for this.
certificate to be used by
this's connection when a client certificate is requested during the TLS handshake.
uri.
msg's connection TLS handshake after
an unacceptable TLS certificate has been received.
SoupMessage:got-headerss].
msg to HTTPS as a result of matching its domain with a HSTS policy.
msg has occurred.
msg's connection TLS handshake when
tls_connection requests a certificate from the client.
msg's connection TLS handshake when
tls_connection requests a certificate password from the client.