Thomas Erlang

Results 7 comments of Thomas Erlang

You catch it as an exception. ```delphi try // your rest call except on e: EHTTPError do begin // e.ErrorCode will contain the response code end; end; ```

It's not supported in SuperObject. Would like to see it supported. But then again, how often is it that the fields are of the same type? Had it been: ```...

Ah, cool. That does indeed work.

What are you referring to @Timothyoverton? SuperObject? Just use `ISuperObject` instead of `TSuperObject` in the class definition. ```delphi TDictionaryDataObject = class data: ISuperObject; end; ```

I'm fine with the TRestClient name change. Why isn't there a "PutJSON" and "PatchJSON"? Isn't possible to call them "Post, put and patch" and just overload them? I agree that...

I agree. It should still be possible to use another library.

Your code is rather hard to read. Try something like this: ``` itens: TObjectList; ``` You need to tell delphi what type of object the list will contain.