(self, path, data)
| 73 | self.conn.sock.sendall(data) |
| 74 | |
| 75 | def post_raw(self, path, data): |
| 76 | data_bytes = data.encode("utf-8") |
| 77 | req = f"POST {path} HTTP/1.1\r\n" |
| 78 | req += f'Authorization: Basic {str_to_b64str(self.authpair)}\r\n' |
| 79 | req += f'Content-Length: {len(data_bytes)}\r\n\r\n' |
| 80 | self.send_raw(req.encode("ascii") + data_bytes) |
| 81 | |
| 82 | def recv_raw(self): |
| 83 | ''' |
no test coverage detected