Clean up HTTP and JSON-RPC parsing code
Openopened 3 years ago by p · 0 comments
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
http_parserppmay be employed in json-rpc-test-server.
backend_co_on_dataetc. can then be deduplicated.
In the bi-directional mode the shell may act as a server and JSON-RPC parsing code can similarly be shared between the two programs. We need to be able to distinguish request from responses and branch accordingly. Think about detecting probable JSON-RPC 1.0 requests and responses--maybe just look at object field names.