module Octokit::Connection

Included Modules

Direct including types

Defined in:

octokit/connection.cr

Constant Summary

CONVENIENCE_HEADERS = Set {"accept", "content_type"}

Header keys that can be passed in options hash to {#get},{#head}

Instance Method Summary

Instance methods inherited from module Octokit::Authentication

application_authenticated? application_authenticated?, basic_authenticated? basic_authenticated?, bearer_authenticated? bearer_authenticated?, token_authenticated? token_authenticated?, user_authenticated? user_authenticated?

Instance Method Detail

def agent #

Hypermedia agent for the GitHub API


[View source]
def delete(url, options = nil) #

Make a HTTP DELETE request


[View source]
def get(url, options = nil) #

Make a HTTP GET request


[View source]
def head(url, options = nil) #

Make a HTTP HEAD request


[View source]
def last_response #

Response for last HTTP request


[View source]
def paginate(klass : T.class, url : String, *, start_page = nil, per_page = nil, auto_paginate = @auto_paginate, options = nil) : Paginator(T) forall T #

Make one or more HTTP GET requests, optionally fetching the next page of results from URL in Link response header based on value in #auto_paginate.


[View source]
def paginate(klass : T.class, url : String, *, start_page = nil, per_page = nil, auto_paginate = @auto_paginate, options = nil, &) #

ditto


[View source]
def patch(url, options = nil) #

Make a HTTP PATCH request


[View source]
def post(url, options = nil) #

Make a HTTP POST request


[View source]
def put(url, options = nil) #

Make a HTTP PUT request


[View source]
def root #

Fetch the root resource for the API


[View source]