Handle headers inside ruby app.