Pretty impressive! Haven’t tried it, so it may have some mistakes, but it is surely close. As mentioned before, using :- use_module(library(http/http_server)).
would be better. This also provides http_server/1. Starting the server using initialization/1
is a bit dubious. Good enough for interactive usage though. This probably illustrates the weakness of ChatGPT to miss relatively recent improvements.
1 Like