---------------------------------------------------------------------- This is the API documentation for the gdtest_inline_threshold library. ---------------------------------------------------------------------- ## Classes Core classes CompactClient(host: str) A client with 8 methods (stays inline since 8 <= 10). Parameters ---------- host The server hostname. FullClient(host: str, port: int = 443) A client with 12 methods (gets split since 12 > 10). Parameters ---------- host The server hostname. port The server port. ## FullClient Methods Methods for the FullClient class get(self, path: str) -> dict Send a GET request. Parameters ---------- path Request path. Returns ------- dict Response payload. post(self, path: str, body: dict) -> dict Send a POST request. Parameters ---------- path Request path. body Request body. Returns ------- dict Response payload. put(self, path: str, body: dict) -> dict Send a PUT request. Parameters ---------- path Request path. body Request body. Returns ------- dict Response payload. delete(self, path: str) -> bool Send a DELETE request. Parameters ---------- path Request path. Returns ------- bool True if successful. patch(self, path: str, body: dict) -> dict Send a PATCH request. Parameters ---------- path Request path. body Partial update payload. Returns ------- dict Response payload. head(self, path: str) -> dict Send a HEAD request. Parameters ---------- path Request path. Returns ------- dict Response headers. options(self, path: str) -> list Send an OPTIONS request. Parameters ---------- path Request path. Returns ------- list Allowed methods. connect(self) -> None Establish the connection. disconnect(self) -> None Terminate the connection. ping(self) -> float Measure round-trip latency. Returns ------- float Latency in milliseconds. authenticate(self, token: str) -> bool Authenticate with the server. Parameters ---------- token Bearer token. Returns ------- bool True if authenticated. refresh_token(self) -> str Refresh the authentication token. Returns ------- str New token value. ## Functions Public functions connect(host: str, port: int = 443) -> gdtest_inline_threshold.FullClient Create and connect a client. Parameters ---------- host Server hostname. port Server port. Returns ------- FullClient Connected client instance.