Soup.Message – libsoup-2.4 Reference Manual
Packages
libsoup-2.4
Soup
Message
first_party
flags
http_version
method
reason_phrase
server_side
status_code
tls_certificate
tls_errors
uri
Message
Message.from_uri
add_header_handler
add_status_code_handler
disable_feature
get_address
get_first_party
get_flags
get_http_version
get_https_status
get_uri
is_keepalive
set_chunk_allocator
set_first_party
set_flags
set_http_version
set_redirect
set_request
set_response
set_status
set_status_full
set_uri
content_sniffed
finished
got_body
got_chunk
got_headers
got_informational
network_event
restarted
wrote_body
wrote_body_data
wrote_chunk
wrote_headers
wrote_informational
request_body
request_headers
response_body
response_headers
Message
Object Hierarchy:
Description:
public
class
Message
:
Object
Namespace:
Soup
Package:
libsoup-2.4
Content:
Properties:
public
URI
first_party
{
set
;
get
; }
public
MessageFlags
flags
{
set
;
get
; }
public
HTTPVersion
http_version
{
set
;
get
; }
public
string
method
{
set
;
owned
get
; }
public
string
reason_phrase
{
set
;
owned
get
; }
public
bool
server_side
{
construct
set
;
get
; }
public
uint
status_code
{
set
;
get
; }
public
TlsCertificate
tls_certificate
{
set
;
owned
get
; }
public
TlsCertificateFlags
tls_errors
{
set
;
get
; }
public
URI
uri
{
set
;
get
; }
Creation methods:
public
Message
(
string
method,
string
uri_string)
public
Message.from_uri
(
string
method,
URI
uri)
Methods:
public
uint
add_header_handler
(
string
@signal,
string
header,
Callback
callback)
public
uint
add_status_code_handler
(
string
@signal,
uint
status_code,
Callback
callback)
public
void
disable_feature
(
Type
feature_type)
public
weak
Address
get_address
()
public
unowned
URI
get_first_party
()
public
MessageFlags
get_flags
()
public
HTTPVersion
get_http_version
()
public
bool
get_https_status
(
out
TlsCertificate
certificate,
out
TlsCertificateFlags
errors)
public
unowned
URI
get_uri
()
public
bool
is_keepalive
()
public
void
set_chunk_allocator
(
owned
ChunkAllocator
allocator)
public
void
set_first_party
(
URI
first_party)
public
void
set_flags
(
MessageFlags
flags)
public
void
set_http_version
(
HTTPVersion
version)
public
void
set_redirect
(
uint
status_code,
string
redirect_uri)
public
void
set_request
(
string
content_type,
MemoryUse
req_use,
uint8
[] req_body)
public
void
set_response
(
string
? content_type,
MemoryUse
resp_use,
uint8
[] resp_body)
public
void
set_status
(
uint
status_code)
public
void
set_status_full
(
uint
status_code,
string
reason_phrase)
public
void
set_uri
(
URI
uri)
Signals:
public
signal
void
content_sniffed
(
string
content_type,
HashTable
<
string
,
string
> @params)
public
virtual
signal
void
finished
()
public
virtual
signal
void
got_body
()
public
virtual
signal
void
got_chunk
(
Buffer
chunk)
public
virtual
signal
void
got_headers
()
public
virtual
signal
void
got_informational
()
public
signal
void
network_event
(
SocketClientEvent
event,
IOStream
connection)
public
virtual
signal
void
restarted
()
public
virtual
signal
void
wrote_body
()
public
signal
void
wrote_body_data
(
Buffer
chunk)
public
virtual
signal
void
wrote_chunk
()
public
virtual
signal
void
wrote_headers
()
public
virtual
signal
void
wrote_informational
()
Fields:
public
unowned
MessageBody
request_body
public
unowned
MessageHeaders
request_headers
public
unowned
MessageBody
response_body
public
unowned
MessageHeaders
response_headers
Inherited Members:
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count