Commit Graph

18 Commits

Author SHA1 Message Date
Přemysl Eric Janouch f9e157293c
json-rpc-test-server: only return regular files
They can be symlinked.
2020-10-17 23:30:22 +02:00
Přemysl Eric Janouch 42d1ff064f
json-rpc-test-server: comment on some CGI details
There are some unresolved issues in the CGI clients
that needed a more precise description.
2020-10-17 23:09:29 +02:00
Přemysl Eric Janouch 710f8e0b2d
json-rpc-test-server: fix function names
Very obviously copied and pasted from the shell.
2020-10-16 23:55:15 +02:00
Přemysl Eric Janouch 4938ee43bd
json-rpc-test-server: try to send a 408
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.
2020-10-15 04:59:01 +02:00
Přemysl Eric Janouch 75b2094cdd
json-rpc-test-server: add a simple co-process mode
A disgusting copy-paste but it will have to do for now.

Closes #6
2020-10-15 03:20:20 +02:00
Přemysl Eric Janouch b3c377afdb
json-rpc-test-server: WS: fix failures to upgrade
Similar to ad1aba9, only here we return 426 to the client.
2020-10-15 00:39:27 +02:00
Přemysl Eric Janouch 01767198f2
WebSockets -> WebSocket
This is the correct name of the protocol, usage of the word
"WebSockets" should be limited.
2020-10-14 00:03:34 +02:00
Přemysl Eric Janouch d489362a28
json-rpc-test-server: implement rpc.discover 2020-10-13 20:54:27 +02:00
Přemysl Eric Janouch 0771c142fe
json-rpc-test-server: fix reading the request URI 2020-10-13 04:46:08 +02:00
Přemysl Eric Janouch 5d2cd01db0
json-rpc-test-server: fix a potential memory leak 2020-10-13 02:08:53 +02:00
Přemysl Eric Janouch 633f7007d1
json-rpc-test-server: add a "date" method 2020-09-01 23:41:20 +02:00
Přemysl Eric Janouch f4d178b3f6
Update copyright years 2020-09-01 21:03:53 +02:00
Přemysl Eric Janouch ee5317f865
json-rpc-test-server: reject non-null params in "ping" 2020-09-01 20:56:03 +02:00
Přemysl Eric Janouch 20558ecd2b
json-rpc-test-server: make sure to set the id in responses 2020-09-01 20:55:22 +02:00
Přemysl Eric Janouch 3a445c2db2
Name change 2020-09-01 19:02:41 +02:00
Přemysl Eric Janouch 1840ac795e
json-rpc-test-server: fix some outstanding issues 2018-10-19 01:15:12 +02:00
Přemysl Eric Janouch df38bcf775
Merge in a JSON-RPC 2.0 test server 2018-10-18 07:49:36 +02:00
Přemysl Eric Janouch 1c52f9e37e
demo-json-rpc-server -> json-rpc-test-server 2018-10-18 07:27:55 +02:00