Http class, private method

Hi,
There is this method

method ExecuteRequestSynchronous(aRequest: not nullable HttpRequest; aThrowOnError: Boolean): nullable HttpResponse;

Does it really have to be private ?

I don’t want to be catching exceptions. The following would be preferred.

      if(response.Success)then
      begin

Looking at the code, I think if I could call that overload, it would return a response where success is false ?
Cheers,
John

isn’t that what

method TryExecuteRequestSynchronous(aRequest: not nullable HttpRequest): nullable HttpResponse;

is for?

Oops yes sorry, that looks like what I need

1 Like