pi_portal.modules.system.socket.unix_stream_http_client.UnixStreamHttpClient
- class pi_portal.modules.system.socket.unix_stream_http_client.UnixStreamHttpClient(socket_path: str)[source]
Bases:
objectA vanilla Python HTTP client over a unix socket.
- Parameters:
socket_path (str) – The path to the unix socket.
- post(path: str, body: Dict[str, Any]) UnixStreamHttpResponse[source]
Send a post request to the server.
- Parameters:
path (str) – The HTTP path to make the request to.
body (Dict[str, Any]) – A python dictionary representing a JSON payload.
- Returns:
The server’s response.
- Return type: