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

Response Context #126

Open
chrisaige opened this issue Oct 10, 2018 · 0 comments
Open

Response Context #126

chrisaige opened this issue Oct 10, 2018 · 0 comments

Comments

@chrisaige
Copy link

chrisaige commented Oct 10, 2018

I think it would be a nice feature tobe able to read the response context.
Currently the libary only parses the response body as far as im aware and there is no way to obtain information from the Response Headers and Cookies and so on.

Im imagining something like this (I am not a delphi developer):

var
  vList : TList<TPerson>;
  context : ResponseContext = ResponseContext.Create(); //Empty Instance
begin
  vList := RestClient.Resource('http://localhost:8080/java-rest-server/rest/persons')
                     .Accept(RestUtils.MediaType_Json)
                     .fill(context) //set a reference to the context that should be filled
                     .Get<TList<TPerson>>();
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

No branches or pull requests

1 participant