[ CCode ( has_construct_function = false ) ]
public Message.from_encoded_form (string method, string uri_string, owned string encoded_form)
Creates a new Message 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 [[email protected]] when no longer in use. See
also [func@form_encode], [func@form_encode_hash] and [func@form_encode_datalist].
method |
the HTTP method for the created request (GET, POST or PUT) |
uri_string |
the destination endpoint (as a string) |
encoded_form |
a encoded form |
the new Message, or null if |