Return a new Resource object at a subpath of the current resource's URL. :param subpath: subpath of the resource :type subpath: str :return: Resource at subpath :rtype: Resource
(self, subpath)
| 134 | return deepcopy(self._default_headers) |
| 135 | |
| 136 | def subresource(self, subpath): |
| 137 | """ |
| 138 | Return a new Resource object at a subpath of the current resource's URL. |
| 139 | |
| 140 | :param subpath: subpath of the resource |
| 141 | :type subpath: str |
| 142 | :return: Resource at subpath |
| 143 | :rtype: Resource |
| 144 | """ |
| 145 | return self.__class__( |
| 146 | url=simple_urljoin(self.url.geturl(), subpath), |
| 147 | default_headers=self.default_headers(), |
| 148 | default_timeout=self.default_timeout, |
| 149 | default_auth=self.default_auth, |
| 150 | default_use_gzip_encoding=self.default_use_gzip_encoding, |
| 151 | default_max_attempts=self.default_max_attempts, |
| 152 | ) |
| 153 | |
| 154 | def _request(self, |
| 155 | method, |