module

GitHub::REST

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

Constants

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

Class methods

raw_request(method : String, path : String, headers : HTTP::Headers, body : String | Nil)

This function is responsible for requesting the API

Source
request(method : String, path : String, headers : HTTP::Headers, body : String | Nil)
Source

Nested types