Jump to content
KBazX

TSslHttpRest and OnDocData

Recommended Posts

Did I understand correctly that it makes no sense to use the OnDocData event for the TSslHttpRest component, since TSslHttpRest certainly uses the RcvdStream property of its ancestor TSslHttpCli?

Share this post


Link to post

Correct, provided you use the RestRequest method.  

 

The data received during the request is handled internally, and made available from various properties, ResponseRaw, ResponseStream, ResponseOctet and ResponseJson, depending on what you want to do with it, or might have been written to a file.

 

Because TSslHttpRest descends from TSslHttpCli, it publishes all it's properties and events, so you can use it without RestRequest is required.

 

Angus

 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×