UNPKG

axis-core

Version:

A Node.js library written in TypeScript containing shared behavior for the other packages, e.g. code handling communication and authentication with Axis Communication cameras.

21 lines 771 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DeviceRequest = void 0; /** * Abstract class describing a HTTP(S) request sent to an Axis device. */ class DeviceRequest extends Request { /** * Initializes a new instance of the class. * @param connection The connection to the device. * @param relativePath The relative path. * @param init The object containing any custom settings that you want to apply to the request. */ constructor(connection, relativePath, init) { super(connection.url + relativePath, init); this.username = connection.username; this.password = connection.password; } } exports.DeviceRequest = DeviceRequest; //# sourceMappingURL=DeviceRequest.js.map