12 throw new \RuntimeException(
"This method has not been implemented.");
17 throw new \RuntimeException(
"This method has not been implemented.");
22 throw new \RuntimeException(
"This method has not been implemented.");
27 $clone = clone($this);
29 $clone->headers[
$name] = [$value];
36 $clone = clone($this);
38 if (! isset($clone->headers[
$name])) {
39 $clone->headers[
$name] = [];
42 $clone->headers[
$name][] = $value;
49 $clone = clone($this);
51 if (isset($clone->headers[
$name])) {
52 unset($clone->headers[
$name]);
60 throw new \RuntimeException(
"This method has not been implemented.");
65 throw new \RuntimeException(
"This method has not been implemented.");
70 throw new \RuntimeException(
"This method has not been implemented.");
75 if (! isset($this->headers[
$name])) {
79 return $this->headers[
$name];
84 return implode(
',', $this->headers[
$name]);
89 if (! isset($this->headers[
$name])) {
93 return $this->headers[
$name];
withProtocolVersion($version)
withBody(StreamInterface $body)
withHeader($name, $value)
withAddedHeader($name, $value)