request: Create a new HTTP request

Description Usage Arguments Value Examples

View source: R/req.R

Description

To perform a HTTP request, first create a request object with request(), then define its behaviour with req_ functions, then perform the request and fetch the response with req_perform().

Usage

1
request(base_url)

Arguments

base_url

Base URL for request.

Value

An HTTP response: an S3 list with class httr2_request.

Examples

1
request("http://r-project.org")

httr2 documentation built on Sept. 28, 2021, 5:10 p.m.