Skip to main content

api_get

Function api_get 

Source
pub fn api_get(_ctx: &Ctx, jwt: &str, path: &str) -> AppApi
Expand description

GET https://api.github.com/{path} with the JWT as a bearer token.

The call goes through crate::http in-process, with a ten-second bound: the Authorization header lives in this process alone, and a failure’s reason is scrubbed against the token and its signature before it is returned.