module GitHub::REST
Overview
This module enables GitHub.cr to interact with the GitHub API through HTTP requests
Defined in:
githubcr/rest.crConstant Summary
-
API_BASE =
"api.github.com"
-
GLOBAL_MUTEX =
Mutex.new
-
HTTP_CLIENT =
HTTP::Client.new(API_BASE, tls: true)
Class Method Summary
-
.raw_request(method : String, path : String, headers : HTTP::Headers, body : String | Nil)
This function is responsible for requesting the API
- .request(method : String, path : String, headers : HTTP::Headers, body : String | Nil)
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
def self.request(method : String, path : String, headers : HTTP::Headers, body : String | Nil)
#