ServerMessage
Object Hierarchy:
Description:
[
CCode ( type_id =
"soup_server_message_get_type ()" ) ]
public sealed class ServerMessage :
Object
An HTTP server request and response pair.
A [class@ServerMessage] represents an HTTP message that is being sent or received on a [class@Server].
[class@Server] will create [class@ServerMessage]s automatically for incoming requests, which your application will receive via handlers.
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@ServerMessage] combines both the request and the response.
Content:
Properties:
Creation methods:
Methods:
Signals:
- public signal bool accept_certificate (TlsCertificate tls_peer_certificate, TlsCertificateFlags tls_peer_errors)
Emitted during the msg's connection TLS handshake after
client TLS certificate has been received.
- public signal void connected ()
Emitted when the msg's socket is connected and the TLS
handshake completed.
- public signal void disconnected ()
Emitted when the msg's socket is disconnected.
- public signal void finished ()
Emitted when all HTTP processing is finished for a message.
- public signal void got_body ()
Emitted after receiving the complete request body.
- public signal void got_chunk (Bytes chunk)
Emitted after receiving a chunk of a message body.
- public signal void got_headers ()
Emitted after receiving the Request-Line and request headers.
- public signal void wrote_body ()
Emitted immediately after writing the complete response body for a
message.
- public signal void wrote_body_data (uint chunk_size)
Emitted immediately after writing a portion of the message body to the
network.
- public signal void wrote_chunk ()
Emitted immediately after writing a body chunk for a message.
- public signal void wrote_headers ()
Emitted immediately after writing the response headers for a message.
- public signal void wrote_informational ()
Emitted immediately after writing a 1xx (Informational) response.
Inherited Members:
All known members inherited from class GLib.Object