We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c64515 commit cc737e6Copy full SHA for cc737e6
jsonrpcserver/dispatcher.py
@@ -1,8 +1,13 @@
1
"""
2
Dispatcher.
3
4
-The dispatch() function takes a JSON-RPC request, calls the appropriate method, then
5
-returns the response.
+The main public function "dispatch" takes a JSON-RPC request (a json string), calls the
+appropriate method, returning a JSON-RPC response (a json string).
6
+
7
+Another public function is available, dispatch_to_response, which returns a Response
8
+object, without serializing it to json.
9
10
+This module is named dispatcher.py because dispatch clashes with the function name.
11
12
import json
13
import os
0 commit comments