phprs\util\CurlResponse::handleHeader PHP Method

handleHeader() public method

public handleHeader ( $ch, $header_line )
    public function handleHeader($ch, $header_line)
    {
        if (count($this->headers) == 0) {
            $this->status = trim(explode(' ', $header_line, 2)[1]);
        }
        list($n, $v) = explode(':', $header_line) + array(null, null);
        if (strcasecmp(trim($n), 'Content-Type') === 0) {
            $this->content_type = trim($v);
        }
        $this->headers[] = $header_line;
        return strlen($header_line);
    }