Message

constructor(method: String, uriString: String)

Creates a new empty #SoupMessage, which will connect to @uri.

Return

the new #SoupMessage (or null if @uri could not be parsed).

Parameters

method

the HTTP method for the created request

uriString

the destination endpoint (as a string)


constructor(method: String, uriString: String, encodedForm: String)

Creates a new #SoupMessage and sets it up to send the given @encoded_form to @uri via @method. If @method is "GET", it will include the form data into @uri's query field, and if @method is "POST" or "PUT", it will be set as request body.

This function takes the ownership of @encoded_form, that will be released with func@GLib.free when no longer in use. See also func@form_encode, func@form_encode_hash and func@form_encode_datalist.

Return

the new #SoupMessage, or null if

Parameters

method

the HTTP method for the created request (GET, POST or PUT)

uriString

the destination endpoint (as a string)

encodedForm

a encoded form


constructor(uriString: String, multipart: Multipart)

Creates a new #SoupMessage and sets it up to send @multipart to

Return

the new #SoupMessage, or null if @uri_string could not be parsed

Parameters

uriString

the destination endpoint

multipart

a #SoupMultipart


constructor(method: String, uri: <Error class: unknown class>)

Creates a new empty #SoupMessage, which will connect to @uri.

Return

the new #SoupMessage

Parameters

method

the HTTP method for the created request

uri

the destination endpoint


constructor(baseUri: <Error class: unknown class>)

Creates a new #SoupMessage to send OPTIONS * to a server. The path of

Return

the new #SoupMessage

Parameters

baseUri

the destination endpoint


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)