Skip to content

Update the sendResponseMessage with a protected modifier and fix a spelling error. #83

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

Closed
wants to merge 4 commits into from

Conversation

twaddington
Copy link

Planning on using this library for a larger project and may be submitting more patches in the future. Just wanted to get this small fix in and see how it goes.

I updated the sendResponseMessage with the protected modifier so subclasses could override it's functionality. Basically a few of us are running into a situation where we need access to the raw HttpResponse object to get at the response headers and status code. If we can override this method we can subclass AsyncHttpResponseHandler and get at those values.

@MarkVaughn
Copy link

Support this pull, getting warning:
The method ResponseCodeHandler.sendResponseMessage(HttpResponse) does not override the inherited method from AsyncHttpResponseHandler since it is private to a different package

@luzianscherrer
Copy link

I second the "situation where we need access to the raw HttpResponse object to get at the response headers and status code". It would be very nice if response headers and status code would be passed along in onSuccess and onFailure in any case.

@JimJty
Copy link

JimJty commented May 2, 2013

Is there another way to get the status codes (until this gets merged)?

@smarek smarek closed this in d8903be Oct 9, 2013
@ghost ghost assigned smarek Oct 9, 2013
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.

5 participants