src/Http.php
public function setHeader(array $args) {
        $header = [];
        foreach ($args as $key => $item) {
            $key = implode('-', array_map('ucfirst', explode('-', strtolower($key))));
            if (empty($item)) {
                continue;
            }
            if (is_array($item)) {
                $item = implode(',', $item);
            }
            $header[] = $key. ':'. $item;
        }
        if (empty($header)) {
            return $this;
        }
        return $this->setOption(CURLOPT_HTTPHEADER, $header);
    }
public function setHeader(array $args) {
        $header = [];
        foreach ($args as $key => $item) {
            $key = implode('-', array_map('ucfirst', explode('-', strtolower($key))));
            if (empty($item)) {
                continue;
            }
            if (is_array($item)) {
                $item = implode(',', $item);
            }
            $header[] = $key. ':'. $item;
        }
        if (empty($header)) {
            return $this;
        }
        return $this->setOption(CURLOPT_HTTPHEADER, $header);
    }
SET HEADER
@param array $args
@return $this