Skip to content

Response Context #126

Open
Open
@chrisaige

Description

@chrisaige

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>>();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions