echo_eio: make quit into a button, to use POST

This commit is contained in:
Simon Cruanes 2023-06-05 22:03:58 -04:00
parent 55ef988aa4
commit d2b89eee50
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -183,11 +183,19 @@ let () =
];
li []
[
pre []
pre
[ A.style "display: inline" ]
[
a [ A.href "/quit/" ] [ txt "/quit (POST)" ];
txt " have the server stop";
a [ A.href "/quit" ] [ txt "/quit" ];
txt " (POST) to stop server";
];
form
[
A.style "display: inline";
A.action "/quit";
A.method_ "POST";
]
[ button [ A.type_ "submit" ] [ txt "quit" ] ];
];
];
];