How to use Header Fields as an input for a rest request

Hi guys!
I have a big problem that I can’t solve, I’m trying to remove the path parameters from a rest request and put it in the header but I don’t know how to capture the values ??that are being passed in the header so that it arrives at the service’s input

Check this service pub.flow:getTransportInfo