public void OnRequest(object api, HttpRequest request) { /* all requests sent to github api server must include 'User-Agent' header. /* https://developer.github.com/v3/#user-agent-required */ request.headers["User-Agent"] = "MyAwesomeGitClient"; }
public void OnRequest(object api, HttpRequest request) { request.headers["Authorization"] = ((APIBase)api).authString; }