Editor Scripting API

    A HTTP Request configuration. Use with "LensStudio:Network".performHttpRequestWithReply.

    // Note: reply object needs to be stored (e.g. in `this` object of the plugin) 
    // in order for the network connection to be maintained.
    const reply = performHttpRequestWithReply(httpRequest);
    reply.onData.connect((buffer) => {
    console.log('Received data chunk: ' + buffer.toString());
    });
    reply.onEnd.connect(response => {
    console.log(response.statusCode);
    });
    reply.onError.connect(response => {});
    Index

    Constructors

    Properties

    authorization: IAuthorization
    body: string | Uint8Array<ArrayBufferLike> | FormData

    The body for the HTTP Request.

    contentType: string

    The content type of the request body.

    headers: object

    The header for the HTTP request.

    method: Method

    The HTTP method to send the request with.

    url: string

    The URL where the request should be made to.

    MMNEPVFCICPMFPCPTTAAATR