Jump to content
EugeneK

THttpConnection.AnswerBytes

Recommended Posts

Hi

 

Can we add THttpConnection.AnswerBytes with TBytes parameter same way as TSocket.SendTB

Share this post


Link to post

I'm slowly adding TBytes versions of binary methods and properties as I update components, should be added in the next week or so.

 

Angus

 

  • Thanks 1

Share this post


Link to post

Do you expect AnswerBytes to be an alternate to AnswerStream, AnswerString or AnswerPage?

 

Angus

 

Share this post


Link to post

For me it is alternative for AnswerStream, so there is no need to create/dispose stream if there are already TBytes to send.

Share this post


Link to post

Thanks, I added AnswerBodyTB which creates a TBytesStream, not tested yet since the samples don't send small streams.

 

Angus

 

Share this post


Link to post
Posted (edited)

BTW any reason why AnswerBodyTB rather than AnswerBodyTBytes or AnswerBodyBytes? makes it less readable and not consistent since it is AnswerBodyStream, not AnswerBodyTS

Edited by EugeneK

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
×