class documentation
class Request:
Undocumented
| Static Method | delete |
Send an authenticated DELETE request to HubAI. |
| Static Method | get |
Send an authenticated GET request to HubAI. |
| Static Method | headers |
Build authenticated request headers for HubAI API calls. |
| Static Method | patch |
Send an authenticated PATCH request to HubAI. |
| Static Method | post |
Send an authenticated POST request to HubAI. |
| Static Method | put |
Send an authenticated PUT request to HubAI. |
| Static Method | url |
Build the API base URL for a HubAI service. |
| Static Method | _check |
Raise an HTTP error for non-success responses. |
| Static Method | _get |
Decode a JSON response or raise a readable HTTP error. |
| Static Method | _get |
Join a base API URL with an endpoint path. |
| Static Method | _process |
Validate a response and decode its JSON payload. |
Build authenticated request headers for HubAI API calls.
| Returns | |
dict[ | Headers containing the bearer token and JSON accept header. |
| Raises | |
ValueError | If HUBAI_API_KEY is not configured. |