• Make an request to the notebook server.

    Parameters

    • url: string

      The url for the request.

    • init: RequestInit

      The initialization options for the request.

    • settings: ServerConnection.ISettings

      The server settings to apply to the request.

    Returns Promise<Response>

    a Promise that resolves with the response.

    Throws

    If the url of the request is not a notebook server url.

    Notes

    The url must start with settings.baseUrl. The init settings are merged with settings.init, with init taking precedence. The headers in the two objects are not merged. If there is no body data, we set the content type to application/json because it is required by the Notebook server.