mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 19:25:32 -05:00
echo_eio: make quit into a button, to use POST
This commit is contained in:
parent
55ef988aa4
commit
d2b89eee50
1 changed files with 14 additions and 6 deletions
|
|
@ -183,11 +183,19 @@ let () =
|
||||||
];
|
];
|
||||||
li []
|
li []
|
||||||
[
|
[
|
||||||
pre []
|
pre
|
||||||
|
[ A.style "display: inline" ]
|
||||||
[
|
[
|
||||||
a [ A.href "/quit/" ] [ txt "/quit (POST)" ];
|
a [ A.href "/quit" ] [ txt "/quit" ];
|
||||||
txt " have the server stop";
|
txt " (POST) to stop server";
|
||||||
];
|
];
|
||||||
|
form
|
||||||
|
[
|
||||||
|
A.style "display: inline";
|
||||||
|
A.action "/quit";
|
||||||
|
A.method_ "POST";
|
||||||
|
]
|
||||||
|
[ button [ A.type_ "submit" ] [ txt "quit" ] ];
|
||||||
];
|
];
|
||||||
];
|
];
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue