try_auth_header: Add Authorization header

View source: R/http.R

try_auth_headerR Documentation

Add Authorization header

Description

Add Authorization header

Usage

try_auth_header(.req, token = NULL)

Arguments

.req

An httr2 request

token

(character) a Bearer token. optional. if nothing passed, we look for the env var PROOF_TOKEN

Value

An httr2_request S3 class adding an HTTP header for Authorization with the value in token


FredHutch/fh.wdlR documentation built on Sept. 23, 2024, 7:43 a.m.