mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-05 00:11:22 +00:00
Create GitHubHttpUrlConnectionClient to encapsulate interactions with HttpUrlConnection
This commit is contained in:
@@ -67,7 +67,7 @@ class Requester extends GitHubRequest.Builder<Requester> {
|
||||
* if the server returns 4xx/5xx responses.
|
||||
*/
|
||||
public <T> T fetch(@Nonnull Class<T> type) throws IOException {
|
||||
return client.sendRequest(this, (responseInfo) -> GitHubClient.parseBody(responseInfo, type)).body();
|
||||
return client.sendRequest(this, (responseInfo) -> GitHubResponse.parseBody(responseInfo, type)).body();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -97,7 +97,7 @@ class Requester extends GitHubRequest.Builder<Requester> {
|
||||
* the io exception
|
||||
*/
|
||||
public <T> T fetchInto(@Nonnull T existingInstance) throws IOException {
|
||||
return client.sendRequest(this, (responseInfo) -> GitHubClient.parseBody(responseInfo, existingInstance))
|
||||
return client.sendRequest(this, (responseInfo) -> GitHubResponse.parseBody(responseInfo, existingInstance))
|
||||
.body();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user