INNER CODE UNIT · JavaScript
ExternalRequest
astefanutti/kubebox · lib/client.js:47
class ExternalRequest {
constructor(options) {
this.options = options;
}
get({ generator, readable, async = true, cancellable = false, rejectOnAbort = false } = {}) {
return get(merge({ headers: { 'Accept' : 'application/json, text/plain, */*' }}, this.options), { generator, readable, async, cancellable, rejectOnAbort });
}
}
class ApiRequest {
constructor(options, context) {
this.options = merge({ headers: {} }, options);
this.context = context;
}