- ext
- clib
- socket.pl -- Network socket (TCP and UDP) library
- uid.pl -- User and group management on Unix systems
- unix.pl -- Unix specific operations
- syslog.pl
- filesex.pl -- Extended operations on files
- uri.pl -- Process URIs
- uri_components/2
- uri_data/3
- uri_data/4
- uri_normalized/2
- iri_normalized/2
- uri_normalized_iri/2
- uri_is_global/1
- uri_resolve/3
- uri_normalized/3
- iri_normalized/3
- uri_normalized_iri/3
- uri_query_components/2
- uri_authority_components/2
- uri_authority_data/3
- uri_encoded/3
- uri_iri/2
- uri_file_name/2
- uri_edit/3
- process.pl -- Create processes and redirect I/O
- time.pl -- Time and alarm library
- sha.pl -- SHA secure hashes
- crypt.pl
- memfile.pl
- uuid.pl -- Universally Unique Identifier (UUID) Library
- hash_stream.pl -- Maintain a hash on a stream
- md5.pl -- MD5 hashes
- streampool.pl -- Input multiplexing
- cgi.pl -- Read CGI parameters
- prolog_stream.pl -- A stream with Prolog callbacks
- udp_broadcast.pl -- A UDP broadcast proxy
- rlimit.pl
- clib
- uri_edit(+Actions, +URI0, -URI) is det
- Modify a URI according to Actions. Actions is either a single
action or a (nested) list of actions. Defined primitive actions
are:
- scheme(+Scheme)
- Set the Scheme of the URI (typically
http
,https
, etc.) - user(+User)
- Add/set the user of the authority component.
- password(+Password)
- Add/set the password of the authority component.
- host(+Host)
- Add/set the host (or ip address) of the authority component.
- port(+Port)
- Add/set the port of the authority component.
- path(+Path)
- Set/extend the
path
component. If Path is not absolute it is taken relative to the path of URI0. - search(+KeyValues)
- Extend the
Key=Value
pairs of the current search (query) component. New values replace existing values. If KeyValues is written as =(KeyValues) the current search component is ignored. KeyValues is a list, whose elements are one ofKey=Value
,Key-Value
or `Key(Value)`. - fragment(+Fragment)
- Set the Fragment of the uri.
Components can be removed by using a variable as value, except from
path
which can be reset usingpath(/)
and query which can be dropped usingquery(=([]))
.- Arguments:
-
URI0 - is either a valid uri or a variable to start fresh.