module Octokit::Connection
Included Modules
Direct including types
Defined in:
octokit/connection.crConstant Summary
-
CONVENIENCE_HEADERS =
Set {"accept", "content_type"}
-
Header keys that can be passed in options hash to {#get},{#head}
-
SUCCESSFUL_STATUSES =
[201, 202, 204]
-
Successful status codes from PUT/POST/PATCH requests
Instance Method Summary
-
#agent
Hypermedia agent for the GitHub API
-
#delete(url, options = nil)
Make a HTTP DELETE request
-
#get(url, options = nil)
Make a HTTP GET request
-
#head(url, options = nil)
Make a HTTP HEAD request
-
#last_response
Response for last HTTP request
-
#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
. -
#paginate(klass : T.class, url : String, *, start_page = nil, per_page = nil, auto_paginate = @auto_paginate, options = nil, &)
ditto
-
#patch(url, options = nil)
Make a HTTP PATCH request
-
#post(url, options = nil)
Make a HTTP POST request
-
#put(url, options = nil)
Make a HTTP PUT request
-
#root
Fetch the root resource for the API
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 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
.
def paginate(klass : T.class, url : String, *, start_page = nil, per_page = nil, auto_paginate = @auto_paginate, options = nil, &)
#
ditto