def server_url
      @server_url ||= begin
        scheme  = request.env["rack.url_scheme"]
        address = request.env["SERVER_NAME"]
        port    = request.env["SERVER_PORT"]

        Pathname.new("#{scheme}://#{address}:#{port}")
      end
    end
def server_url
      @server_url ||= begin
        scheme  = request.env["rack.url_scheme"]
        address = request.env["SERVER_NAME"]
        port    = request.env["SERVER_PORT"]

        Pathname.new("#{scheme}://#{address}:#{port}")
      end
    end
This server's URL, returned as a {Pathname} for easy joining.

 @example Construct a server url
   server_url.join('libs-release-local', 'artifact.deb')

 @return [Pathname]