service
simple_server (
 
urls)
Create a simple server producing web pages and other resources.Example:
The following extract defines a simple server, running on default port 8080,
which displays a message depending on the address it receives.
server = simple_server(parser .* -> html("Page {__1}", <>Welcome to page {__1}</>))You can further customize the server by setting its fields, in particular portand netmask.Example:
The following extract defines a server behaving as
simple_server(my_parser) but
accepting requests on port 80
server = {simple_server(my_parser) with port = Server.default_port(80)}See also:
If you are only interested in producing one page, you can also use the simplified function
one_page. Other functions provide servers with different features. For instance, if your
application requires encrypted communications and authentication, you should take a look
at function
secure.

Comments

The browser you use is not supported by this application, probably because it lacks some critical features.
For a better experience, please consider using this application with a supported browser.