src/DdvRestfulApi/Lib/RequestHeaders.php
public function setHeaders($headers)
    {
        if (!is_array($headers)) {
            $headers = array();
        }
        $this->lastSetHeaders = $headers;
        $this->headers = $this->parseHeaders();
        return $this;

    }
public function setHeaders($headers)
    {
        if (!is_array($headers)) {
            $headers = array();
        }
        $this->lastSetHeaders = $headers;
        $this->headers = $this->parseHeaders();
        return $this;

    }
重置头
@param $headers
@return $this