pub fn http_get(
_py: Python<'_>,
url: String,
params: Option<&Bound<'_, PyAny>>,
headers: Option<HashMap<String, String>>,
timeout_secs: Option<u64>,
) -> PyResult<HttpResponse>Expand description
Blocking HTTP GET request.
Creates an HttpClient internally and blocks on the async operation using a dedicated runtime.
§Errors
Returns an error if:
- The HTTP client fails to initialize.
- The HTTP request fails (e.g., network error, timeout, invalid URL).
- The server returns an error response.
- The params argument is not a dict.
§Panics
Panics if the spawned thread panics or runtime creation fails.