It's been a while, but can't you get the WebResponse from WebRequestCycle and 
then call response.setHeader()?

    Jon

________________________________
From: Korbinian Bachl <[email protected]>
Sent: Sunday, August 22, 2021 4:58 AM
To: users <[email protected]>
Subject: RedirectRequestHandler and HttpHeader?

Hi,

I call this:

getRequestCycle().scheduleRequestHandlerAfterCurrent(new 
RedirectRequestHandler("myNewURL",301));

How could I add a custom HttpHeader to the response?
e.g.: Cache-Control: max-age=300


Best,

KB

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

[EXTERNAL EMAIL] CAUTION: This email originated from outside of Telenav. DO NOT 
CLICK links or attachments unless you recognize the sender and know the content 
is safe.

Reply via email to