Checking headers in Body Transform

I need to enable a response body transform based on the response headers. How do i access the response header elements. {{._tyk_meta…}} is not returning any values.

That’s not currently supported, though it theoretically could be :slight_smile:

Ouch… it should be possible via a middleware plugin ?

Unlikely, JS middleware plugins are mainly inbound, and are for hosted installs :slight_smile:

Response middleware is quite new, so the body transform is missing the methods that inject the session metadata.

It’s trivial to add, but not to cloud I’m afraid. Maybe in v2.0