public function absolute($relative = null)
    {
        $host = $this->getHost();

        if (null !== $relative) {
            $relative = '/' . ltrim($relative, '/');
        }

        return $host . $relative;
    }