the msg.req.query contains any parameters passed on the get...
http://{my_pi_address}:1880/test?variable=12
will give you an object {variable : 12}
here is a simple example
[{"id":"b25523b4.4daae","type":"http in","name":"","url":"/test","method":"get","swaggerDoc":"","x":317,"y":523,"z":"ecf4c734.130b38","wires":[["f62aa1fb.09d56"]]},{"id":"125b643f.eda49c","type":"http response","name":"","x":646,"y":510,"z":"ecf4c734.130b38","wires":[]},{"id":"f62aa1fb.09d56","type":"function","name":"","func":"console.log(msg.req);\nmsg.payload = \"OK\";\nmsg2 = {payload:msg.req.query};\nreturn [msg,msg2];","outputs":"2","noerr":0,"x":471,"y":548,"z":"ecf4c734.130b38","wires":[["125b643f.eda49c"],["4718d87f.b8e728"]]},{"id":"4718d87f.b8e728","type":"debug","name":"","active":true,"console":"false","complete":"false","x":661,"y":562,"z":"ecf4c734.130b38","wires":[]}]