<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _fetch(self, default_path):
 """ Internal method for fetching. This differs from :meth:`.fetch` in that it accepts a default path as an argument. """

        if not self._path:
            path = default_path
        else:
            path = self._path

        req_type = 'GET' if len(self._post_params) == 0 else 'POST'
        url = '/'.join(['http:/', self.spacegdn.endpoint, path])
        resp = requests.request(req_type, url, params=self._get_params,
                                data=self._post_params, headers=self._headers)
        response = Response()
        data = None
        if resp.ok:
            data = resp.json()
        response.add(data, resp.status_code, resp.reason)

        return response