Устанавливает заголовок

Если заголовок с таким именем уже есть, он будет перезаписан.

@param string $name
@param string $value

@return EForms_Mail

@since 1.00
@uses ezcMailPart::setHeader()
776055
public function setHeader($name, $value)
	{
		$this->getComposer()->setHeader($name, $value, CHARSET);
		return $this;
	}
173766
public function setHeader(string $name, $value) : Message
    {
        $name = strtolower($name);
        $this->headers[$name] = is_array($value) ? array_values($value) : [$value];

        return $this;
    }
668093
public function withAddedHeader($name, $value) : self
    {
        $new = clone $this;

        return $new->setResponse($this->response->withAddedHeader($name, $value));
    }
947972
public function setPost(string $name, $value) : self
    {
        $this->post[$name] = $value;

        return $this;
    }
606983
public function email($name, $value = NULL, $options = [])
    {
        $this->addErrorClass($name, $options);
        $tags['input'] = parent::email($name, $value, $options);
        $tags['error'] = $this->getErrorTag($name);
        return $this->buildTags($tags);
    }
297108
private function label( string $name, string $value = null ) {
		$labels = [
			'home'       => __('Главная', self::PREFIX ),
			'search'     => __('Результаты поиска по запросу: "%s"', self::PREFIX ),
			'404'        => __('404. Страница не найдена', self::PREFIX ),
			'category'   => _x('%s', 'category label', self::PREFIX ),
			'tag'        => _x('%s', 'tag label', self::PREFIX ),
			'taxonomy'   => _x('%s', 'taxonomy label', self::PREFIX ),
			'author'     => _x('%s', 'author label', self::PREFIX ),
			'attachment' => _x('%s', 'attachment label', self::PREFIX ),
			'year'       => _x('%s', 'year label', self::PREFIX ),
			'month'      => _x('%s', 'month label', self::PREFIX ),
			'day'        => _x('%s', 'day label', self::PREFIX ),
			'post_type'  => _x('%s', 'post type label', self::PREFIX )
		];

		if ( array_key_exists( $name, $labels ) ) {
			if ( ! is_null( $value ) ) {
				return sprintf( $labels[ $name ], $value );
			}

			return $labels[ $name ];
		}

		return false;
	}
1217330
public function header($name, $value = null)
    {

        if ($value === null) {
            $this->headers[] = $name;
        } else {
            $this->headers[] = $this->headerString($name, $value);
        }

        return $this;
    }
246554
public function addFormParam($name, $value)
    {
        $this->options[GuzzleRequestOptions::FORM_PARAMS][$name] = $value;

        return $this;
    }
1001517
public function withHeader($name, $value) : self
    {
        $new = clone $this;

        return $new->setResponse($this->response->withHeader($name, $value));
    }
681839
protected function _sendHeader($name, $value = null)
    {
        deprecationWarning(
            'Will be removed in 4.0.0'
        );

        if ($value === null) {
            header($name);
        } else {
            header("{$name}: {$value}");
        }
    }
373497
public function setRequestHeader($name, $value) {
    $header = array();
    $header[$name] = $value;
    //TODO: as a limitation of the driver it self, we will send permanent for the moment
    $this->browser->addHeader($header, true);
  }
728508
public function addHeader(string $name, string $value): Response
    {
        $this->headers->add($name, $value);
        return $this;
    }
875690
public function set(string $name, string $value)
    {
        $this->values[$name] = $value;
        return $this;
    }
664652
public function addHeader( $name, $value )
	{
		$hs = $this->object->getHeaders();
		$hs->addTextHeader( $name, $value );
		return $this;
	}
1271178
public function addHeader($name, $value)
    {
        $name = strtolower($name);
        $this->headers[$name] = $value;
        return $this;
    }
1323821
public static function request(String $name = NULL, $value = NULL)
    {
        return self::_method($name, $value, $_REQUEST, __FUNCTION__);
    }
811081
public function setHeader($name, $value)
    {
        if (!$this->response->headers->has($name)) {
            $this->response->headers->set($name, $value);
        }
    }