public function withAddedType($value)
    {
		$new = clone $this;

		if (empty($new->headers[Header\ContentType::name()])) {
            $new->headers[Header\ContentType::name()] = [];
        }

        $new->headers[Header\ContentType::name()][] = $value;
		return $new;
	}
public function withAddedType($value)
    {
		$new = clone $this;

		if (empty($new->headers[Header\ContentType::name()])) {
            $new->headers[Header\ContentType::name()] = [];
        }

        $new->headers[Header\ContentType::name()][] = $value;
		return $new;
	}
public function withAddedType ( $ value ) { $ new = clone $ this ; if ( empty ( $ new -> headers [ Header \ ContentType :: name ( ) ] ) ) { $ new -> headers [ Header \ ContentType :: name ( ) ] = [ ] ; } $ new -> headers [ Header \ ContentType :: name ( ) ] [ ] = $ value ; return $ new ; }
Return an instance with the Content-Type header appended with the given value.

Existing values for the specified header will be maintained. The new
value(s) will be appended to the existing list. If the header did not
exist previously, it will be added.

@param string $name Case-insensitive header field name to add.
@param string|string[] $value Header value(s).
@return self
@throws \InvalidArgumentException for invalid header names or values.
Return an instance with the Content - Type header appended with the given value .