maybe_request: Check if object is request-like

View source: R/request.R

maybe_requestR Documentation

Check if object is request-like

Description

This function checks an object without looking at the class. Due to a slight overhead in R6 method dispatch there can be a small gain by removing the class of the object and treating it as a bare environment. However, in that case is.Request will no longer work

Usage

maybe_request(x)

unclass_request(x)

Arguments

x

An object to check

Value

A boolean indicating with some certainty if the object is a request


reqres documentation built on Dec. 11, 2025, 9:06 a.m.