Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Provide Access to Response Headers #49

Open
naaman opened this issue Jun 20, 2012 · 0 comments
Open

Provide Access to Response Headers #49

naaman opened this issue Jun 20, 2012 · 0 comments

Comments

@naaman
Copy link

naaman commented Jun 20, 2012

There's no mechanism for accessing the response headers. This issue is primarily driven by the need to check rate limit headers sent from the API. However, there could be other headers that need to be exposed.

A couple discussed options:

App app = connection.execute(new AppCreate(), apiKey);
app.getResponse().getHeaders();

or

App app = connection.execute(new AppCreate(), apiKey);
List<Header> headers = connection.getLastHeaders();

and for ease of use:

App app = herokuApi.createApp();
RateLimit limit = herokuApi.getRateLimit();
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant