request_handler_handler: request_handler_handler

View source: R/request_handler_handler.R

request_handler_handlerR Documentation

request_handler_handler

Description

Helper function to handle robotstxt handlers.

Usage

request_handler_handler(request, handler, res, info = TRUE, warn = TRUE)

Arguments

request

the request object returned by call to httr::GET()

handler

the handler either a character string entailing various options or a function producing a specific list, see return.

res

a list a list with elements '[handler names], ...', 'rtxt', and 'cache'

info

info to add to problems list

warn

if FALSE warnings and messages are suppressed

Value

a list with elements '[handler name]', 'rtxt', and 'cache'


ropenscilabs/robotstxt documentation built on Jan. 21, 2023, 7:19 p.m.