(self, method: str, path: str, body: Any = None)
| 108 | self._http.close() |
| 109 | |
| 110 | def _raw(self, method: str, path: str, body: Any = None) -> httpx.Response: |
| 111 | headers = {"Authorization": f"Bearer {self.api_key}"} |
| 112 | if body is not None: |
| 113 | headers["Content-Type"] = "application/json" |
| 114 | return self._http.request(method, path, headers=headers, json=body) |
| 115 | |
| 116 | def resolve(self, s: str) -> str: |
| 117 | s = s.replace("{base_url}", self.base_url) |
no test coverage detected