hasProtocol: URI management utilities

hasProtocolR Documentation

URI management utilities

Description

These functions are utilities for merging URI objects. They test different characteristics of the given URI.

Usage

hasProtocol(u)
isRelative(u)
hasHost(u)

Arguments

u

the URI object of interest.

Value

Each returns a logical value indicating whether the URI has:

protocol

a protocol of the form http, https, ftp, news

relative path

a relative, rather than fully qualified, path, e.g. ../foo.html or Foo.html as opposed to /foo.html and http://www.omegahat.org/index.html.

host

a domain or hostname such as www.omegahat.org.

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

See Also

mergeURI


omegahat/RHTMLForms documentation built on Nov. 29, 2023, 12:36 a.m.