Skip to main content

Internet Access

Calling the open internet: InternetModule, fetch requests and responses, headers, and blobs.

Commonly used

Guides

All APIs in this topic

Require modules with require('LensStudio:<name>').

Components, assets, and modules

APIDescription
InternetModule SPECS Camera KitProvides access to the open internet.

Objects and data

APIDescription
Blob SPECS Camera KitRepresents a blob, which is a file-like object of immutable, raw data.
Headers SPECSHeaders for the Fetch API in RemoteServiceModule.
RemoteServiceHttpRequest SPECS Camera KitA http request which can be sent using the RemoteServiceModule.
RemoteServiceHttpResponse SPECS Camera KitThe response returned by a RemoteServiceHttpRequest call.
Request SPECSRepresents an HTTP request used by the Fetch API in RemoteServiceModule.
Response SPECSRepresents an HTTP response used by the Fetch API in RemoteServiceModule.
WebSocketOptions SPECS Camera KitAdditional settings applied when opening a WebSocket connection with InternetModule#createWebSocket.
WebViewOptionsWebViewOptions allow you to specify various aspects of the WebView that will be created.