Did you know ...
Search Documentation:
Grammar rule html_insert_resource//1
HOME
DOWNLOAD
SWI-Prolog
Sources/building
Docker images
Add-ons
Browse GIT
DOCUMENTATION
Manual
Packages
FAQ
Command line
PlDoc
Bluffers
▶
Prolog syntax
PceEmacs
HTML generation
License
Publications
Rev 7 Extensions
TUTORIALS
Beginner
▶
Getting started
Learn Prolog Now!
Simply Logical
Debugger
Development tools
Advanced
▶
Modules
Grammars (DCGs)
clp(fd)
Printing messages
PlDoc
Web applications
▶
Web applications
Let's Encrypt!
Pengines
Semantic web
▶
ClioPatria
RDF namespaces
Graphics
▶
XPCE
GUI options
Machine learning
▶
Probabilistic Logic Programming
External collections
▶
Meta level tutorials
For packagers
▶
Linux packages
COMMUNITY
Forum & mailing list
Blog
News
Report a bug
Submit a patch
Submit an add-on
Roadmap (on GitHub)
External links
Contributing
Code of Conduct
Contributors
SWI-Prolog items
COMMERCIAL
WIKI
Login
View changes
Sandbox
Wiki help
All tags
http
http
http_log.pl
http_header.pl -- Handling HTTP headers
http_session.pl -- HTTP Session management
http_wrapper.pl -- Server processing of an HTTP request
http_stream.pl -- HTTP Streams
http_exception.pl -- Map Prolog exceptions to HTTP errors
http_unix_daemon.pl -- Run SWI-Prolog HTTP server as a Unix system daemon
thread_httpd.pl -- Threaded HTTP server
http_path.pl -- Abstract specification of HTTP server locations
http_dispatch.pl -- Dispatch requests in the HTTP server
http_host.pl -- Obtain public server location
http_dyn_workers.pl -- Dynamically schedule HTTP workers.
http_parameters.pl -- Extract parameters (GET and POST) from HTTP requests
http_client.pl -- HTTP client library
http_multipart_plugin.pl -- Multipart form-data plugin
http_hook.pl -- HTTP library hooks
html_write.pl -- Write HTML text
html_quasiquotations.pl -- HTML quasi quotations
mimetype.pl -- Determine mime-type for a file
html_head.pl -- Automatic inclusion of CSS and scripts links
html_resource/2
html_current_resource/1
html_requires//1
html_insert_resource//1
mime_include//2
http_server_files.pl -- Serve files needed by modules from the server
term_html.pl -- Represent Prolog terms as HTML
json.pl -- Reading and writing JSON serialization
http_open.pl -- HTTP client library
http_error.pl -- Decorate uncaught HTTP exceptions with stack-trace
http_dirindex.pl -- HTTP directory listings
http_files.pl -- Serve plain files from a hierarchy
http_cors.pl -- Enable CORS: Cross-Origin Resource Sharing
http_json.pl -- HTTP JSON Plugin module
js_write.pl -- Utilities for including JavaScript
js_grammar.pl -- JavaScript grammar
http_openid.pl -- OpenID consumer and server library
yadis.pl -- Yadis discovery
ax.pl -- Attribute Exchange library
http_authenticate.pl -- Authenticate HTTP connections using 401 headers
http_server_health.pl -- HTTP Server health statistics
graphql.pl -- GraphQL interface
htmx.pl -- Support htmx.org
http_cookie.pl -- HTTP client cookie handling
http_digest.pl -- HTTP Digest authentication
http_load.pl -- Load Prolog code from a web server
http_proxy.pl -- Use HTTP network proxies
http_pwp.pl -- Serve PWP pages through the HTTP server
http_redis_plugin.pl -- Hook session management to use Redis
http_server.pl -- HTTP server library
http_sgml_plugin.pl -- Parse of HTML and XML documents for the HTTP client libs
hub.pl -- Manage a hub for websockets
websocket.pl -- WebSocket support
json_convert.pl -- Convert between JSON terms and Prolog application terms
mimepack.pl -- Create a MIME message
html_insert_resource
(+ResourceOrList)
//
is
det
Actually include HTML head resources. Called through
html_post//2
from
html_requires//1
after rewrite by
html_head_expansion/2
. We are guaranteed we will only get one call that is passed a flat list of requested requirements. We have three jobs:
Figure out all indirect requirements
See whether we can use any `aggregate' resources
Put required resources before their requiree.