trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiří Podhorský <>
Subject Get a binary body in plugin of traffic server
Date Fri, 03 Jul 2015 12:44:43 GMT

can be binary body of response accessed from some plugin, for example
jpg picture?

I tried to look for it in TransformationPlugin,
but there is only sentence about producing binary body:
"size_t atscppapi::TransformationPlugin::produce ( const std::string &  )
This method is how a TransformationPlugin will produce output for the
downstream transformation plugin, if you need to produce binary data
this can still be done with strings by a call to string::assign() or
by constructing a string with string::string(char *, size_t). "

but method "consume" for loading data is not called for binary data in
my testing plugin, only for plaintext pages.

That is strange, because transformation plugin can receive and send
messages from and to another transformation plugin. So, next
transformation plugin should be able to accept binary body, when I can
send it by "produce" method.

Can you explain it for me?

I'm using trafficserver 5.3.


View raw message