Param.full
Description:
[ CCode ( has_construct_function = false ) ]
public Param.full (string name, MemoryUse use, uint8[] data, string content_type, string filename)
public Param.full (string name, MemoryUse use, uint8[] data, string content_type, string filename)
Create a new Param called name
with data.length
bytes of
data
as the value.
content_type
is the type of the data as a MIME type, for example "text/plain" for simple string parameters.
If the parameter is a file upload it can be passed as filename
.
Parameters:
name |
the parameter name |
use |
the MemoryUse describing how the memory can be used |
data |
a pointer to the start of the data |
content_type |
the content type of the data |
filename |
the original filename, or |
length |
the length of the data |
Returns:
a new Param. |