Params
Object Hierarchy:
Description:
[ CCode ( ref_function = "rest_params_ref" , type_id = "rest_params_get_type ()" , unref_function = "rest_params_unref" ) ]
[ Compact ]
public class Params
Content:
Creation methods:
- public Params ()
Create a new Params.
Methods:
- public unowned Param? @get (string name)
Return the Param
called name
, or null if it doesn't exist.
- public unowned Params @ref ()
Increments the reference count of this by
one.
- public void add (owned Param param)
Add param
to this.
- public bool are_strings ()
Checks if the parameters are all simple strings (have a content type of
"text/plain").
- public HashTable<unowned string,unowned string> as_string_hash_table ()
Create a new
GenericSet which contains the name and value of all string (content type of text/plain) parameters.
- public Params copy ()
Makes a deep copy of a Params.
- public void remove (string name)
Remove the Param
called name
.
- public void unref ()
Decrements the reference count of this by
one, freeing the structure when the reference count reaches zero.