Skip to content

Wire http set data

Set an array of data, or string of raw data to send with next GET/POST/etc. request (overwriting the existing data or rawData)

Usage

$http->setData($data);

Arguments

Name

Type(s)

Description

data

array, string

Associative array of data or string of raw data

Return value

$this

Object instance it was called from (method supports fluent interface).