MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _write_message

Method _write_message

tests/test_connect.py:2009–2012  ·  view source on GitHub ↗
(self, message_type, payload)

Source from the content-addressed store, hash-verified

2007 await self.client_reader.read()
2008
2009 def _write_message(self, message_type, payload):
2010 length = self.MESSAGE_LENGTH.size + len(payload)
2011 self.client_writer.write(
2012 message_type + self.MESSAGE_LENGTH.pack(length) + payload)
2013
2014 def _write_error_response(self, exc_type):
2015 fields = (

Callers 2

prepareMethod · 0.95
_write_error_responseMethod · 0.95

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected