Skip to content

Split Client.getResponse to Client.doRequest & Client.getResponse. #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2016

Conversation

iwanbk
Copy link
Contributor

@iwanbk iwanbk commented Aug 26, 2016

There is some API that give empty response and we only need
to check HTTP status code.
example :
https://developer.github.com/v3/issues/assignees/#check-assignee

But there is no way to do this in current code because
Client.getResponse not returning HTTP status code.

Client.doRequest makes it possible to do this by returning http.Response

There is some API that give empty response and we only need
to check HTTP status code.
example :
https://developer.github.com/v3/issues/assignees/#check-assignee

But there is no way to do this in current code because
getResponse will parse the response body and not returning
HTTP status code.

Client.doRequest makes it possible to do this.
@unknwon
Copy link
Member

unknwon commented Aug 26, 2016

Thanks!

@unknwon unknwon merged commit c317bcf into gogs:master Aug 26, 2016
guyzmo pushed a commit to guyzmo/go-gogs-client that referenced this pull request May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants