reduce duplicate code

* added _get_response
* added _request_uri