(self, method, path, data, connection_header, **kwargs)
| 57 | self.headers.update({key: value}) |
| 58 | |
| 59 | def _request(self, method, path, data, connection_header, **kwargs): |
| 60 | headers = self.headers.copy() |
| 61 | if connection_header is not None: |
| 62 | headers["Connection"] = connection_header |
| 63 | self.conn.request(method, path, data, headers, **kwargs) |
| 64 | return self.conn.getresponse() |
| 65 | |
| 66 | def post(self, path, data, connection_header=None, **kwargs): |
| 67 | return self._request('POST', path, data, connection_header, **kwargs) |
no test coverage detected