Re: Binary body in plugin of traffic server

2015-07-07 Thread Brian Geffon
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

Binary body in plugin of traffic server

2015-07-06 Thread Jiří Podhorský
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

Get a binary body in plugin of traffic server

2015-07-03 Thread Jiří Podhorský
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