Home Assistant Unofficial Reference 2024.12.1
homeassistant.util.aiohttp.MockStreamReader Class Reference

Public Member Functions

None __init__ (self, bytes content)
 
bytes read (self, int byte_count=-1)
 

Private Attributes

 _content
 

Detailed Description

Small mock to imitate stream reader.

Definition at line 17 of file aiohttp.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.util.aiohttp.MockStreamReader.__init__ (   self,
bytes  content 
)
Initialize mock stream reader.

Definition at line 20 of file aiohttp.py.

Member Function Documentation

◆ read()

bytes homeassistant.util.aiohttp.MockStreamReader.read (   self,
int   byte_count = -1 
)
Read bytes.

Definition at line 24 of file aiohttp.py.

Member Data Documentation

◆ _content

homeassistant.util.aiohttp.MockStreamReader._content
private

Definition at line 22 of file aiohttp.py.


The documentation for this class was generated from the following file: