Skip to main content

default_headers

Function default_headers 

Source
pub fn default_headers(token: &Secret) -> Vec<(&'static str, String)>
Expand description

Header pairs to send on every GH REST call. The token is revealed from its Secret wrapper only when the header value is constructed; the returned Authorization string is the only place the cleartext lives, and it is consumed by the HTTP client immediately.