Add 'GET /' endpoint for getting the program state (experimental)

Related #3372
This commit is contained in:
Junegunn Choi committed 2023-09-03 16:30:35 +09:00
1 parent c5e4b83de3
commit 0f50dc848e
5 files changed
+121 -16

No files matched your search

+3
View File
@@ -795,6 +795,9 @@ e.g.
\fB# Start HTTP server on port 6266
fzf --listen 6266
# Get program state in JSON format (experimental)
curl localhost:6266
# Send action to the server
curl -XPOST localhost:6266 -d 'reload(seq 100)+change-prompt(hundred> )'