set_requester: Set a request preprocessor

View source: R/find-requester.R

set_requesterR Documentation

Set a request preprocessor

Description

Set a request preprocessor

Usage

set_requester(FUN)

Arguments

FUN

A function or expression that modifies request objects. Specifically, a valid input is one of:

  • A function taking a single argument, the request, and returning a valid request object.

  • A formula as shorthand for an anonymous function with . as the "request" argument, as in the purrr package.

  • A list of functions/formulas, which will be executed in sequence on the request.

  • NULL, to override the default redact_auth().

Value

Invisibly, FUN, validated and perhaps modified.

See Also

set_redactor()


nealrichardson/httptest documentation built on Feb. 5, 2024, 12:35 a.m.