Debian Codegraph @

man/parse_url.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/utils.R
3 \name{parse_url}
4 \alias{parse_url}
5 \title{Parse URL}
6 \usage{
7 parse_url(url)
8 }
9 \arguments{
10 \item{url}{character string containing a URL.}
11 }
12 \value{
13 A named character vector of length 7, comprising:
14 \itemize{
15 \item \code{scheme} - the URL scheme, such as "http" or "inproc" (always lower
16 case).
17 \item \code{userinfo} - the username and password (if supplied in the URL
18 string).
19 \item \code{hostname} - the name of the host.
20 \item \code{port} - the port (if not specified, the default port if defined by
21 the scheme).
22 \item \code{path} - the path, typically used with HTTP or WebSocket.
23 \item \code{query} - the query info (typically following ? in the URL).
24 \item \code{fragment} - used for specifying an anchor, the part after # in a
25 URL.
26 }
27 Values that cannot be determined are represented by an empty string \code{""}.
28 }
29 \description{
30 Parses a character string containing an RFC 3986 compliant URL as per NNG.
31 }
32 \examples{
33 parse_url("https://user:[email protected]:8080/type/path?q=info#intro")
34 parse_url("tcp://192.168.0.2:5555")
35
36 }