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(token = NULL)

Arguments

token

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

Value

A request S3 class with the HTTP header that can be passed to httr::GET(), httr::POST(), etc.


FredHutch/fh.wdlR documentation built on March 26, 2024, 8:40 p.m.