request: Create a new HTTP request

View source: R/req.R

requestR Documentation

Create a new HTTP request

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

request(base_url)

Arguments

base_url

Base URL for request.

Value

An HTTP response: an S3 list with class httr2_request.

Examples

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

httr2 documentation built on Nov. 14, 2023, 5:08 p.m.