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.
The namespace for ServerConnection functions.
Notes
This is only intended to manage communication with the Jupyter server.
The default values can be used in a JupyterLab or Jupyter Notebook context.
We use
token
authentication if available, falling back on an XSRF cookie if one has been provided on thedocument
.A content type of
'application/json'
is added when using authentication and there is no body data to allow the server to prevent malicious forms.