I am working on updating the SWI-Prolog entry to FrameworkBenchmark: FrameworkBenchmarks/frameworks/Prolog/SWI-Prolog at master · TechEmpower/FrameworkBenchmarks · GitHub
According to the FrameworkBenchmark’s specification, the endpoint
/fortunes should respond with a very specific response. For one, the head cannot have a
meta tag. Also, the endpoint must send back
Content-Length header. Hence my questions.
Question 1: How do I remove the
meta tag that is automatically inserted by
reply_html_page( [title('Fortunes')], [table([ ... ])] ).
The generated code looks like this:
<!DOCTYPE html> <HTML> <head> <title>Fortunes</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> ... </body> </html>
Question 2: Is there a way to send the
Content-Length header with the response generated by
Question 3: As I am new to Prolog, I will appreciate any feedback on the code in question.