Skip to content
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

Expose processResponse method #95

Closed
wants to merge 1 commit into from

Conversation

damccorm
Copy link

I don't know if we actually want to do this, but if we're not going to expose HEAD for the restClient, it could be useful to at least expose processResponse for users who want to have a consistent way of accessing responses. A good example of this is azure-devops-node-api, which would probably have to replicate this code if its not exposed in order to solve this issue.

@stephenmichaelf
Copy link
Member

Let's discuss. Was there a reason for not exposing HEAD?

@damccorm
Copy link
Author

Yeah, there was some discussion here and some offline discussion as well (I think?). Basically, we decided HEAD isn't a REST concept and didn't want to expose it since the typed-rest-client is supposed to be a general purpose client, not just servicing the node-api.

Agreed that I'm not sure if we want to do this though. The question I think we have to answer is are we comfortable bumping the major version on any breaking change to processHttpResponse? I think as I consider it now I tend to lean towards no, but obviously that's not where I was 4 months ago. Overall I'd be more inclined to just close this and move on though.

@stephenmichaelf
Copy link
Member

Let's go with that!

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.

None yet

2 participants