3.14 Running the server
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog HTTP support
        • The HTTP server libraries
          • Running the server
            • Common server interface options
            • Multi-threaded Prolog
            • library(http/http_unix_daemon): Run SWI-Prolog HTTP server as a Unix system daemon
            • From (Unix) inetd
            • MS-Windows
            • As CGI script
            • Using a reverse proxy

3.14.1 Common server interface options

All the server interfaces provide http_server(:Goal, +Options) to create the server. The list of options differ, but the servers share common options:

port(?Port)
Specify the port to listen to for stand-alone servers. Port is either an integer or unbound. If unbound, it is unified to the selected free port.