encode


Description:


public string encode (...)

Encodes the given field names and values into a value of type "application/x-www-form-urlencoded".

Encodes as defined in the HTML 4.01 spec.

This method requires you to know the names of the form fields (or at the very least, the total number of fields) at compile time; for working with dynamic forms, use [func@form_encode_hash] or [func@form_encode_datalist].

See also: [[email protected]_from_encoded_form].

Parameters:

...

value of first_field, followed by additional field names and values, terminated by null .

first_field

name of the first form field

Returns:

the encoded form


Namespace: Soup.Form
Package: libsoup-3.0



2022 vala-language.org