class
GitLab::Client
- GitLab::Client
- Reference
- Object
Overview
A HTTP client for GitLab instances.
Defined in:
gitlab/client.crConstructors
-
.new(uri : URI, token : -> String, ua = "bjjb/git-lab@#{VERSION}")
Creates a new GitLab HTTP client for the given uri, which calls its token proc and sets the Authorization header for every request.
Instance Method Summary
-
#delete(resource)
Deletes a resource and returns the response.
-
#get(resource, query = {} of String => Array(String))
Gets a response from the GitLab API for the given resource.
-
#patch(resource, body)
Patches a resource and returns the response.
-
#post(collection, body)
Creates a new resource in the collection and returns the response.
-
#put(resource, body)
Replaces a resource and returns the response.
Constructor Detail
Creates a new GitLab HTTP client for the given uri, which calls its token proc and sets the Authorization header for every request.
Instance Method Detail
Gets a response from the GitLab API for the given resource.