Bart\Curl::put PHP Method

put() public method

PUT a json body
public put ( string $path, array $getParams, mixed $body = null, array $headers = null, string $cookies = null ) : array
$path string relative path from base hostUri
$getParams array An associative array of get parameters
$body mixed Optional array or string request body data to send
$headers array Optional headers to send with PUT
$cookies string Cookies to include
return array Remote response body
    public function put($path, array $getParams, $body = null, array $headers = null, $cookies = null)
    {
        return $this->request(CURLOPT_PUT, $path, $getParams, $body, $headers, $cookies);
    }