refactor(dom) RESTful: sendRequest