Skip to content

Commit cc737e6

Browse files
committed
Adjust dispatcher.py module docstring
1 parent 7c64515 commit cc737e6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

jsonrpcserver/dispatcher.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
"""
22
Dispatcher.
33
4-
The dispatch() function takes a JSON-RPC request, calls the appropriate method, then
5-
returns the response.
4+
The main public function "dispatch" takes a JSON-RPC request (a json string), calls the
5+
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.
611
"""
712
import json
813
import os

0 commit comments

Comments
 (0)