If you attach a transformation plugin the std::string will be populated
with whatever the body is, even if it's binary data. You'll need to use
.size()/.length() to determine the buffer size and then just make sure you
do not use string functions if it's binary data (check the content-type).
Brian
Hello,
can be binary body of http response accessed from some plugin of ATS,
for example
jpg picture?
I tried to look for it in TransformationPlugin
https://docs.trafficserver.apache.org/en/latest/api/classatscppapi_1_1TransformationPlugin.html,
but there is only sentence about producing binary
Hello,
can be binary body of response accessed from some plugin, for example
jpg picture?
I tried to look for it in TransformationPlugin
https://docs.trafficserver.apache.org/en/latest/api/classatscppapi_1_1TransformationPlugin.html,
but there is only sentence about producing binary body:
"size