mirascope.tools.web._httpx¶
HTTPXConfig
¶
Bases: _ConfigurableToolConfig
Configuration for HTTPX requests
HTTPX
¶
Bases: _BaseHTTPX
call
¶
call() -> str
Make an HTTP request to the given URL using HTTPX.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
Response text if successful, error message if request fails |
Source code in mirascope/tools/web/_httpx.py
AsyncHTTPX
¶
Bases: _BaseHTTPX
call
async
¶
call() -> str
Make an asynchronous HTTP request to the given URL using HTTPX.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
Response text if successful, error message if request fails |