src/Server/Capabilities/Capabilities.php
public function names(): SetInterface
    {
        if ($this->names instanceof SetInterface) {
            return $this->names;
        }

        $headers = ($this->fulfill)
            (
                new Request(
                    $this->optionsUrl,
                    Method::options(),
                    new ProtocolVersion(1, 1)
                )
            )
            ->headers();

        if (!$headers->has('Link')) {
            return $this->names = new Set('string');
        }

        return $this->names = $headers
            ->get('Link')
            ->values()
            ->filter(function(Value $value): bool {
                return $value instanceof LinkValue;
            })
            ->reduce(
                new Set('string'),
                function(Set $names, LinkValue $link): Set {
                    $this->paths = $this->paths->put(
                        $link->relationship(),
                        $link->url()
                    );

                    return $names->add($link->relationship());
                }
            );
    }
public function names(): SetInterface
    {
        if ($this->names instanceof SetInterface) {
            return $this->names;
        }

        $headers = ($this->fulfill)
            (
                new Request(
                    $this->optionsUrl,
                    Method::options(),
                    new ProtocolVersion(1, 1)
                )
            )
            ->headers();

        if (!$headers->has('Link')) {
            return $this->names = new Set('string');
        }

        return $this->names = $headers
            ->get('Link')
            ->values()
            ->filter(function(Value $value): bool {
                return $value instanceof LinkValue;
            })
            ->reduce(
                new Set('string'),
                function(Set $names, LinkValue $link): Set {
                    $this->paths = $this->paths->put(
                        $link->relationship(),
                        $link->url()
                    );

                    return $names->add($link->relationship());
                }
            );
    }
{@inheritdoc}