MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / respond

Method respond

test/test_client_metadata.py:58–62  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

56 self.handshake_req = None
57
58 def respond(r):
59 if "ismaster" in r:
60 # then this is a handshake request
61 self.handshake_req = r
62 return r.reply(OpMsgReply(maxWireVersion=13))
63
64 self.server.autoresponds(respond)
65 self.server.run()

Callers

nothing calls this directly

Calls 1

replyMethod · 0.45

Tested by

no test coverage detected