Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Commit

Permalink
feat(api-request): add accept method
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 1, 2017
1 parent 47f556a commit de6c0f2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/ApiClient/Request.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,20 @@ module.exports = function (BaseRequest, Response) {
return this
}

/**
* Add accepts header
*
* @method accept
*
* @param {String} value
*
* @chainable
*/
accept (...args) {
this._agent.accept(...args)
return this
}

/* istanbul ignore next */
/**
* Set `Access-Control-Allow-Origin` header
Expand Down

0 comments on commit de6c0f2

Please sign in to comment.