Skip to content

Additional Information in AsyncHttpResponseHandler #14

Closed
@shnhrrsn

Description

@shnhrrsn

It's posible I'm missing something, but I don't see anyway to get any additional information bout the request's response.

I'm specifically needing two things:

  • HTTP Status Code in both onSuccess and onError: Casting the throwable in onError to HttpResponseException will let me call getStatusCode(), but this really isn't the cleanest way to go about it
  • Response bodies in onError: RESTful API's frequently send back a response message, along with an HTTP error code.

Bonus: A way to fetch HTTP Response headers in both methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions