Logs debugging information about the response if requested.
(self, resp, content)
| 205 | return "?" + urllib.parse.urlencode(astuples) |
| 206 | |
| 207 | def _log_response(self, resp, content): |
| 208 | """Logs debugging information about the response if requested.""" |
| 209 | if dump_request_response: |
| 210 | LOGGER.info("--response-start--") |
| 211 | for h, v in resp.items(): |
| 212 | LOGGER.info("%s: %s", h, v) |
| 213 | if content: |
| 214 | LOGGER.info(content) |
| 215 | LOGGER.info("--response-end--") |
| 216 | |
| 217 | def response(self, resp, content): |
| 218 | """Convert the response wire format into a Python object. |