MCPcopy Create free account
hub / github.com/jishi/node-sonos-http-api / ShredHttpClient

Function ShredHttpClient

static/docs/lib/swagger-client.js:1400–1413  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

1398 * ShredHttpClient is a light-weight, node or browser HTTP client
1399 */
1400var ShredHttpClient = function(options) {
1401 this.options = (options||{});
1402 this.isInitialized = false;
1403
1404 var identity, toString;
1405
1406 if (typeof window !== 'undefined') {
1407 this.Shred = require("./shred");
1408 this.content = require("./shred/content");
1409 }
1410 else
1411 this.Shred = require("shred");
1412 this.shred = new this.Shred(options);
1413}
1414
1415ShredHttpClient.prototype.initShred = function () {
1416 this.isInitialized = true;

Callers

nothing calls this directly

Calls 1

requireFunction · 0.85

Tested by

no test coverage detected