module GitHub::REST

Overview

This module enables GitHub.cr to interact with the GitHub API through HTTP requests

Defined in:

githubcr/rest.cr

Constant Summary

API_BASE = "api.github.com"
GLOBAL_MUTEX = Mutex.new
HTTP_CLIENT = HTTP::Client.new(API_BASE, tls: true)

Class Method Summary

Class Method Detail

def self.raw_request(method : String, path : String, headers : HTTP::Headers, body : String | Nil) #

This function is responsible for requesting the API


[View source]
def self.request(method : String, path : String, headers : HTTP::Headers, body : String | Nil) #

[View source]