Did you know ...
Search Documentation:
Predicate json_type/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
IRC
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 Logging module
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
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
http_convert_data/4
post_data_hook/3
is_json_content_type/1
json_type/1
http_read_json/2
http_read_json/3
http_read_json_dict/2
http_read_json_dict/3
reply_json/1
reply_json/2
reply_json_dict/1
reply_json_dict/2
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
json_type
(?MediaType)
is
semidet
[multifile,
library(http/http_json)
]
True if
MediaType
is a JSON media type.
http_json
:json_type/1
is a multifile predicate and may be extended to facilitate non-conforming clients.
Arguments:
MediaType
- is a term
Type
/
SubType
, where both
Type
and
SubType
are atoms.