code: async def write(self, data):
          
          if type(data) != bytes:
              data = self._encode_body(data)
  
          self.protocol.push_data(b"%x\r\n%b\r\n" % (len(data), data))
          await self.protocol.drain()
docs: Writes a chunk of data to the streaming response.
  
          :param data: bytes-ish data to be written.