code: function setAcceptHeader(req) {
      var httpRequest = req.httpRequest;
      if (!httpRequest.headers.Accept) {
        httpRequest.headers['Accept'] = 'application/json';
      }
    }
docs: Sets the Accept header to application/json.
  
  @api private