Skip to content

Class swarmauri_core.transports.i_http_client.IHttpClient

swarmauri_core.transports.i_http_client.IHttpClient

Bases: ABC

Interface for transports capable of issuing HTTP-style client requests.

request abstractmethod async

request(method, path, headers=None, body=b'', **kwargs)
Source code in swarmauri_core/transports/i_http_client.py
13
14
15
16
17
18
19
20
21
@abstractmethod
async def request(
    self,
    method: str,
    path: str,
    headers: Headers | None = None,
    body: Bytes = b"",
    **kwargs,
) -> Tuple[int, Headers, Bytes]: ...