$_boundary
$_boundary : string
Boundary marker.
Provides an interface for building multipart/form-encoded message bodies.
Used by Http\Client to upload POST/PUT data and files.
$_parts : array<mixed,\Cake\Http\Client\FormDataPart>
The parts in the form data.
newPart(string $name, string $value) : \Cake\Http\Client\FormDataPart
Method for creating new instances of Part
string | $name | The name of the part. |
string | $value | The value to add. |
add(string|\Cake\Http\Client\FormData $name, mixed $value = null) : $this
Add a new part to the data.
The value for a part can be a string, array, int, float, filehandle, or object implementing __toString()
If the $value is an array, multiple parts will be added. Files will be read from their current position and saved in memory.
string|\Cake\Http\Client\FormData | $name | The name of the part to add, or the part data object. |
mixed | $value | The value for the part. |
addFile(string $name, mixed $value) : \Cake\Http\Client\FormDataPart
Add either a file reference (string starting with @) or a file handle.
string | $name | The name to use. |
mixed | $value | Either a string filename, or a filehandle. |
Loading…