ApiBase.Request – libapi-base-5 Reference Manual
Packages
libapi-base-5
ApiBase
Request
method
presets
uri
Request.CONNECT
Request.DELETE
Request.GET
Request.HEAD
Request.OPTIONS
Request.PATCH
Request.POST
Request.PUT
Request.TRACE
add_header
add_headers
add_param
add_parameters
add_post_content
form_message
get_status_code
simple_exec
simple_exec_async
Request
Object Hierarchy:
Description:
public
class
Request
:
Object
Namespace:
ApiBase
Package:
libapi-base-5
Content:
Properties:
public
HttpMethod
method
{
get
;
construct
; }
public
string
[]
presets
{
owned
get
;
set
; }
public
string
uri
{
get
;
construct
; }
Creation methods:
public
Request.CONNECT
(
string
uri)
public
Request.DELETE
(
string
uri)
public
Request.GET
(
string
uri)
public
Request.HEAD
(
string
uri)
public
Request.OPTIONS
(
string
uri)
public
Request.PATCH
(
string
uri)
public
Request.POST
(
string
uri)
public
Request.PUT
(
string
uri)
public
Request.TRACE
(
string
uri)
Methods:
public
void
add_header
(
string
name,
string
value,
bool
replace =
true
)
public
void
add_headers
(
Header
[] headers,
bool
replace =
true
)
public
void
add_param
(
string
name,
string
value)
public
void
add_parameters
(
Param
[] parameters)
public
void
add_post_content
(
PostContent
post_content)
public
Message
form_message
()
public
Status
get_status_code
()
public
Bytes
simple_exec
(
Cancellable
? cancellable =
null
)
throws
SoupError
,
BadStatusCodeError
public
async
Bytes
simple_exec_async
(
int
priority =
DEFAULT
,
Cancellable
? cancellable =
null
)
throws
SoupError
,
BadStatusCodeError
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref