EugeneK 20 Posted May 1, 2024 Hi Can we add THttpConnection.AnswerBytes with TBytes parameter same way as TSocket.SendTB Share this post Link to post
Angus Robertson 591 Posted May 2, 2024 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 1 Share this post Link to post
Angus Robertson 591 Posted May 6, 2024 Do you expect AnswerBytes to be an alternate to AnswerStream, AnswerString or AnswerPage? Angus Share this post Link to post
EugeneK 20 Posted May 6, 2024 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
Angus Robertson 591 Posted May 6, 2024 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
EugeneK 20 Posted May 7, 2024 (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 May 7, 2024 by EugeneK Share this post Link to post
Angus Robertson 591 Posted May 7, 2024 ICS house style, per your original request example. Angus Share this post Link to post
Angus Robertson 591 Posted May 17, 2024 AnswerBodyTB is now in SVN and overnight zip updated. Angus 1 Share this post Link to post