aboutsummaryrefslogtreecommitdiff
path: root/json-rpc-test-server.c
Commit message (Collapse)AuthorAgeFilesLines
* WIP: json-rpc-test-server: add HTTP supportHEADmasterPřemysl Eric Janouch2023-08-011-4/+565
| | | | | | | | | | | | | | | | | | | | | Stage 1: make just the HTTP part work. WIP: - Ensure requests aren't started in client_http_on_headers_complete() when the request demands an upgrade - Figure out keep-alive - Make sure request_free() is called exactly once after request start and between requests - Triple-check the code makes some resembling of sense Updates #5 Later stages: - clean up (#7) - ensure WS upgrade works here (it has a completely separate parser, which could be passed as an http_parserpp pointer to ws_handler_finish_handshake()) - move in ws_handler's handshake code
* json-rpc-test-server: try to fetch a name for usPřemysl Eric Janouch2023-08-011-12/+29
| | | | | AI_CANONNAME might not be the best thing but most of the code will stay even if we go for a better method.
* json-rpc-test-server: add a "wait" methodPřemysl Eric Janouch2022-09-041-3/+15
| | | | | Considering the server's nature, the global lock-up it causes shouldn't constitute a major problem.
* json-rpc-test-server: only return regular filesPřemysl Eric Janouch2020-10-171-1/+6
| | | | They can be symlinked.
* json-rpc-test-server: comment on some CGI detailsPřemysl Eric Janouch2020-10-171-8/+33
| | | | | There are some unresolved issues in the CGI clients that needed a more precise description.
* json-rpc-test-server: fix function namesPřemysl Eric Janouch2020-10-161-4/+4
| | | | Very obviously copied and pasted from the shell.
* json-rpc-test-server: try to send a 408Přemysl Eric Janouch2020-10-151-14/+15
| | | | | | | | | Also send "Connection: close" when we're closing the connection. With HTTP/1.1 there come some responsibilities. Surprisingly enough, the forward declaration is desirable and the invocation a clean-up.
* json-rpc-test-server: add a simple co-process modePřemysl Eric Janouch2020-10-151-3/+175
| | | | | | A disgusting copy-paste but it will have to do for now. Closes #6
* json-rpc-test-server: WS: fix failures to upgradePřemysl Eric Janouch2020-10-151-5/+8
| | | | Similar to ad1aba9, only here we return 426 to the client.
* WebSockets -> WebSocketPřemysl Eric Janouch2020-10-141-8/+8
| | | | | This is the correct name of the protocol, usage of the word "WebSockets" should be limited.
* json-rpc-test-server: implement rpc.discoverPřemysl Eric Janouch2020-10-131-2/+35
|
* json-rpc-test-server: fix reading the request URIPřemysl Eric Janouch2020-10-131-1/+1
|
* json-rpc-test-server: fix a potential memory leakPřemysl Eric Janouch2020-10-131-0/+1
|
* json-rpc-test-server: add a "date" methodPřemysl Eric Janouch2020-09-011-0/+23
|
* Update copyright yearsPřemysl Eric Janouch2020-09-011-1/+1
|
* json-rpc-test-server: reject non-null params in "ping"Přemysl Eric Janouch2020-09-011-1/+4
|
* json-rpc-test-server: make sure to set the id in responsesPřemysl Eric Janouch2020-09-011-0/+5
|
* Name changePřemysl Eric Janouch2020-09-011-1/+1
|
* json-rpc-test-server: fix some outstanding issuesPřemysl Janouch2018-10-191-41/+61
|
* Merge in a JSON-RPC 2.0 test serverPřemysl Janouch2018-10-181-0/+3
|
* demo-json-rpc-server -> json-rpc-test-serveracid/masterPřemysl Janouch2018-10-181-0/+2925