Const defaultSettings
defaultSettings: object
Headers
Headers: object = HEADERS
Request
Request: object = REQUEST
WebSocket
WebSocket: object = WEBSOCKET
appUrl
appUrl: string = PageConfig.getOption('appUrl')
baseUrl
baseUrl: string = PageConfig.getBaseUrl()
fetch
fetch: function = FETCH
Type declaration
-
- (input: RequestInfo, init?: RequestInit): Promise<Response>
-
Parameters
-
input: RequestInfo
-
Optional init: RequestInit
Returns Promise<Response>
token
token: string = PageConfig.getToken()
wsUrl
wsUrl: string = PageConfig.getWsUrl()
init
init: object
cache
cache: "no-store" = "no-store"
credentials
credentials: "same-origin" = "same-origin"
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.