Set header in request

@param string $headerName
@param mixed $headerValue

@return HttpRequestContract
165751
public function setHeader(string $headerName, $headerValue): HttpRequestContract
	{
		$this->headers[ $headerName ] = $headerValue;
		return $this;
	}
905279
public function readHeader(string $headerName): ValueReader
    {
        return new ValueReader(
                $this->headers->errors(),
                $headerName,
                $this->headers->value($headerName)
        );
    }
54383
public HttpMessage header(final String headerName, final Object headerValue) {
        return (HttpMessage) super.setHeader(headerName, headerValue);
    }
304099
public function header($header = null, $value = null) {
        if ($header === null) {
            $this->headers = [];
        } else if ($value === null) {
            unset($this->headers[ $header ]);
        } else {
            $this->headers[ $header ] = $header . ': ' . $value;
        }

        return $this;
    }
1023278
public void addHeader(String namespace, String headerName, SOAPElement headerValue) {
    this.soapHeaders.add(headerValue);
  }
744142
protected function _generateIdFromHeaderValue($headerValue) {		
		if (!is_callable($this->header_id_func)) {
			return "";
		}

		$idValue = call_user_func($this->header_id_func, $headerValue);
		if (!$idValue) {
			return "";
		}

		return ' id="' . $this->encodeAttribute($idValue) . '"';
	}
490744
final public function withHeader(string $name, string $value) : HttpException
    {
        $this->headers[$name] = $value;

        return $this;
    }
298827
public function addHeader($header, $value = NULL)
	{
		if($header instanceof HttpHeaderInterface)
		{
			$n = strtolower($header->getFieldName());
			
			if(empty($this->headers[$n]))
			{
				$this->headers[$n] = [[(string)$header->getFieldName(), trim($header->getFieldValue())]];
			}
			else
			{
				$this->headers[$n][] = [(string)$header->getFieldName(), trim($header->getFieldValue())];
			}
		}
		else
		{
			$n = strtolower($header);
			
			if(empty($this->headers[$n]))
			{
				$this->headers[$n] = [[(string)$header, trim($value)]];
			}
			else
			{
				$this->headers[$n][] = [(string)$header, trim($value)];
			}
		}
		
		return $this;
	}
641029
public function addHeader($headerFieldNameOrLine, $fieldValue = null)
	{
		$this->getHeaders()->addTextHeader($headerFieldNameOrLine, $fieldValue);
		return $this;
	}
294908
public function set_header($header, $content = null)
	{
		if (is_null($content))
		{
			$this->headers[] = $header;
		}
		else
		{
			$this->headers[$header] = $content;
		}

		return $this;
	}
944052
public function addDefaultHeader($headerName, $headerValue)
    {
        if (!is_string($headerName)) {
            throw new \InvalidArgumentException('Header name must be a string.');
        }

        $this->defaultHeaders[$headerName] =  $headerValue;
        return $this;
    }
1019622
public function addRequestHeader($header, $value) {
        $this->request = $this->request->withAddedHeader($header, $value);

        return $this;
    }
141979
@Override
	public void add(String headerName, String headerValue) {
		List<String> headerValues = headers.get(headerName);
		if (headerValues == null) {
			headerValues = new LinkedList<String>();
			this.headers.put(headerName, headerValues);
		}
		headerValues.add(headerValue);
	}
371297
private function buildRequest($url, array $headers = []): RequestInterface
    {
        $request = $this->requestFactory->createRequest('GET', $url);
        foreach ($headers as $header => $value) {
            $request = $request->withHeader($header, $value);
        }

        return $request;
    }
859179
public static function parse(string $headerValue): self
    {
        $self = new self();
        foreach (explode(',', $headerValue) as $acceptable) {
            // seems to be impossible to parse acceptables with regular
            // expressions or even scanf(), so we do some string crunching here
            if (strstr($acceptable, 'q=') !== false) {
                list($acceptable, $priority) = explode('q=', trim($acceptable));
            } else {
                $priority = 1;
            }

            settype($priority, 'float');
            $acceptable = trim($acceptable);
            if (substr($acceptable, -1) === ';') {
                $acceptable = substr($acceptable, 0, -1);
            }

            $self->addAcceptable($acceptable, $priority);
        }

        return $self;
    }
815014
public HttpClientResponseBuilder withHeader(String name, String value) {
        Action lastAction = newRule.getLastAction();
        HeaderAction headerAction = new HeaderAction(lastAction, name, value);
        newRule.overrideLastAction(headerAction);
        return this;
    }
1105721
private function determineHeaderStringLine($headerName, array $headerValue)
    {
        return vsprintf(self::FORMAT_HEADER, [$headerName, implode(self::HEADER_SEPARATOR, $headerValue)]);
    }