Ixudra\Curl\Builder::withHeaders PHP Метод

withHeaders() публичный Метод

Add multiple HTTP header at the same time to the request
public withHeaders ( array $headers ) : Builder
$headers array Array of HTTP headers that must be added to the request
Результат Builder
    public function withHeaders(array $headers)
    {
        $this->curlOptions['HTTPHEADER'] = array_merge($this->curlOptions['HTTPHEADER'], $headers);
        return $this;
    }