PublicShow sourcehttp_server.pl -- HTTP server library

This library combines the core server functionality provided by several libraries that are needed by almost any web server. It exports the commonly used predicates from library(http/thread_httpd), library(http/http_dispatch), library(http/http_wrapper), library(http/http_parameters), library(http/html_write), library(http/http_json), and library(http/http_dyn_workers).

Source http_server(+Options) is det
Create an HTTP server using http_dispatch/1 for handling requests. See http_server/2 and http_dispatch/1 for details.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

Source http_current_request(Arg1)
Source http_current_worker(Arg1, Arg2)
Source http_reload_with_parameters(Arg1, Arg2, Arg3)
Source reply_html_page(Arg1, Arg2)
Source http_stop_server(Arg1, Arg2)
Source http_link_to_id(Arg1, Arg2, Arg3)
Source is_json_content_type(Arg1)
Source reply_json_dict(Arg1)
Source http_handler(Arg1, Arg2, Arg3)
Source http_spawn(Arg1, Arg2)
Source http_server_property(Arg1, Arg2)
Source http_add_worker(Arg1, Arg2)
Source html(Arg1, Arg2, Arg3)
Source http_redirect(Arg1, Arg2, Arg3)
Source reply_json_dict(Arg1, Arg2)
Source http_location_by_id(Arg1, Arg2)
Source http_read_json_dict(Arg1, Arg2)
Source http_parameters(Arg1, Arg2, Arg3)
Source http_current_handler(Arg1, Arg2)
Source http_peer(Arg1, Arg2)
Source http_request_expansion(Arg1, Arg2)
Source http_read_json_dict(Arg1, Arg2, Arg3)
Source http_404(Arg1, Arg2)
Source http_switch_protocol(Arg1, Arg2)
Source http_reply_file(Arg1, Arg2, Arg3)
Source http_server(Arg1, Arg2)
Source http_workers(Arg1, Arg2)
Source http_current_server(Arg1, Arg2)
Source http_parameters(Arg1, Arg2)
Source http_dispatch(Arg1)
Source http_delete_handler(Arg1)
Source html_meta Arg1
Source http_current_handler(Arg1, Arg2, Arg3)