RequestHTTP

#SoupRequestHTTP implements #SoupRequest for "http" and "https" URIs.

To do more complicated HTTP operations using the #SoupRequest APIs, call soup_request_http_get_message() to get the request's #SoupMessage.

Constructors

this
this(SoupRequestHTTP* soupRequestHTTP, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

getMessage
Message getMessage()

Gets a new reference to the #SoupMessage associated to this SoupRequest

getRequestHTTPStruct
SoupRequestHTTP* getRequestHTTPStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

soupRequestHTTP
SoupRequestHTTP* soupRequestHTTP;

the main Gtk struct

Inherited Members

From Request

soupRequest
SoupRequest* soupRequest;

the main Gtk struct

getRequestStruct
SoupRequest* getRequestStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

__anonymous
mixin InitableT!(SoupRequest)
Undocumented in source.
getType
GType getType()
getContentLength
long getContentLength()

Gets the length of the data represented by @request. For most request types, this will not be known until after you call soup_request_send() or soup_request_send_finish().

getContentType
string getContentType()

Gets the type of the data represented by @request. For most request types, this will not be known until after you call soup_request_send() or soup_request_send_finish().

getSession
Session getSession()

Gets @request's #SoupSession

getUri
URI getUri()

Gets @request's URI

send
InputStream send(Cancellable cancellable)

Synchronously requests the URI pointed to by @request, and returns a #GInputStream that can be used to read its contents.

sendAsync
void sendAsync(Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Begins an asynchronously request for the URI pointed to by @request.

sendFinish
InputStream sendFinish(AsyncResultIF result)

Gets the result of a soup_request_send_async().

Meta