MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / _handle_request

Method _handle_request

src/api.py:1045–1049  ·  view source on GitHub ↗
(self, method, params)

Source from the content-addressed store, hash-verified

1043 handlers['shutdown'] = HandleShutdown
1044
1045 def _handle_request(self, method, params):
1046 if (self.handlers.has_key(method)):
1047 return self.handlers[method](self, params)
1048 else:
1049 raise APIError(20, 'Invalid method: %s' % method)
1050
1051 def _dispatch(self, method, params):
1052 self.cookies = []

Callers 1

_dispatchMethod · 0.95

Calls 1

APIErrorClass · 0.85

Tested by

no test coverage detected