How to implement GET in httpd server? error: Not Implemented

Hi,
I am trying out erlang http server. I am getting below error. How can I implement GET

Not Implemented
GET to /esi (HTTP/1.1) not supported.

Below is the code to start the server, esi module is in the same directory.

start_esi()->
    inets:start(),
    inets:start(httpd, [
        {port, 80}, 
        {server_name, "httpd_test"}, 
        {server_root, "/laragon/www/erlangtutorials/http"}, 
        {document_root, "/laragon/www/erlangtutorials/http/public"}, % Get current path
        {modules, [mod_esi]}, 
        {erl_script_alias, {"/esi", [esi]}}
        ]).```
5 Likes