braintree-web
Version:
A suite of tools for integrating Braintree in the browser
35 lines (26 loc) • 692 B
JavaScript
function DefaultRequest(options) {
this._url = options.url;
this._data = options.data;
this._method = options.method;
this._headers = options.headers;
}
DefaultRequest.prototype.getUrl = function () {
return this._url;
};
DefaultRequest.prototype.getBody = function () {
return this._data;
};
DefaultRequest.prototype.getMethod = function () {
return this._method;
};
DefaultRequest.prototype.getHeaders = function () {
return this._headers;
};
DefaultRequest.prototype.adaptResponseBody = function (parsedBody) {
return parsedBody;
};
DefaultRequest.prototype.determineStatus = function (status) {
return status;
};
module.exports = DefaultRequest;
;