Ejemplo n.º 1
0
 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";
 }
Ejemplo n.º 2
0
 public void OnRequest(object api, HttpRequest request)
 {
     request.headers["Authorization"] = ((APIBase)api).authString;
 }