Expand description
HTTP/HTTPS networking builtins โ download.file() and url().
Provides TLS support via rustls with system certificate trust
(rustls-native-certs) and Mozilla root certificates (webpki-roots).
download.file(url, destfile) performs a one-shot HTTP/HTTPS GET request
and writes the response body to a local file.
url(description) creates a URL connection object that can be read
with readLines().
Structsยง
- Parsed
Url ๐ - Parsed URL components for HTTP/HTTPS.
Enumsยง
- Scheme ๐
Staticsยง
Traitsยง
- Read
Write ๐Stream - Trait alias for streams that are both Read and Write.
Functionsยง
- connect_
stream ๐ - Open a TCP connection and optionally wrap it in TLS. Returns a boxed Read+Write stream.
- connection_
value ๐ - Build an integer scalar with class
"connection"representing connectionid. - find_
header_ ๐end - Find the position of \r\n\r\n in bytes (end of HTTP headers).
- http_
get ๐ - Perform an HTTP GET request on the given stream, returning the response body as bytes.
- interp_
download_ ๐file - Download a file from a URL.
- interp_
url ๐ - Create a URL connection.
- parse_
status_ ๐code - Parse the HTTP status code from a status line like โHTTP/1.1 200 OKโ.
- parse_
url ๐ - Parse a URL into its components. Only supports http:// and https://.
- tls_
client_ ๐config - Build a rustls
ClientConfigusing system certificates (via rustls-native-certs) with Mozilla roots as fallback (via webpki-roots).