Define a new placeholder

@param   string $name
@param   string $value
@return  static|Route
491203
public function where(string $name, string $value): self
    {
        return $this->placeholder($name, $value);
    }
947972
public function setPost(string $name, $value) : self
    {
        $this->post[$name] = $value;

        return $this;
    }
177025
public function put($name, $value = null)
    {
        if ($name == []) {
            return $this;
        }

        $newValues = $name;

        if (! is_array($name)) {
            $newValues = [$name => $value];
        }

        $newContent = array_merge($this->all(), $newValues);

        $this->setContent($newContent);

        return $this;
    }
1349825
protected function addHeader(string $name, string $value) : self
    {
        $this->headers[$name] = $value;

        return $this;
    }
330340
final public function withAddedHeader($name, $value): self
    {
        return $this->withHeader($name, array_merge($this->getHeader($name), (array)$value));
    }
551889
public function holder($name = null, $value = null) {
        if ($name === null && $value === null) {
            return $this->holders[ 'default' ];
        }
        if ($value === null) {
            $value = $name;
            $name = 'default';
        }
        $this->holders[ $name ] = $value;
        return null;
    }
726904
public function setHeader($name, $value)
    {
        $this->response = $this->response->withHeader($name, $value);
        return $this;
    }
984544
final public function property($name, $value)
    {
        $this->definition->setProperty($name, static::processValue($value, true));

        return $this;
    }
664652
public function addHeader( $name, $value )
	{
		$hs = $this->object->getHeaders();
		$hs->addTextHeader( $name, $value );
		return $this;
	}
134998
public function setPlaceholderParameter($name, $value, $elementName = null)
    {
        if (null != $elementName) {
            $this->placeholderParameters['element'][$elementName][$name] = $value;
        } else {
            $this->placeholderParameters['global'][$name] = $value;
        }
        return $this;
    }
960337
public function pushOption(string $name, $value)
    {
        $array = $this->options[$name] ?? [];

        $array[] = $value;

        $this->options[$name] = $array;

        return $this;
    }
1165235
public function setContext($name, $value = null)
    {
        if (is_array($name)) {
            $this->context = $name + $this->context;
        } else {
            $this->context[$name] = $value;
        }
        return $this;
    }
850720
public function prefixProperty($name, $value)
    {
        $this->getProject()->setNewProperty($this->prefix . $name, $value);
    }
1024473
public function withAddedHeader($name, $value): self
    {
        $this->assertHeaderName($name);

        $clone = clone $this;
        $clone->headers->add($name, $value);

        return $clone;
    }
379082
public function withHeader($name, $value)
    {
        $request = clone $this;
        $request->headers->set($name, $value);

        return $request;
    }
132901
public function withHeader(string $name, string $value)
    {
        $this->defaultHeaders[$name] = $value;

        return $this;
    }
651246
public function withAddedHeader($name, $value): self
    {
        $request = clone $this;
        $request->headers->set($name, $value, false);

        return $request;
    }