| 1398 | * ShredHttpClient is a light-weight, node or browser HTTP client |
| 1399 | */ |
| 1400 | var 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 | |
| 1415 | ShredHttpClient.prototype.initShred = function () { |
| 1416 | this.isInitialized = true; |