On 21/01/2019 08:36, Abhishek kumar srivastava wrote:
> Hi All ,
> 
> I want to access the value of "host" header at the Back-End in
> servlet-filter , Before Http/2.0 Host information was available in the
> Headers .
> After switching to Http/2 I am able to send the request and receive the
> response but information about the "host" header is not accessible on
> calling request.getHeader("host")  or request.getHeader(":authority") I am
> getting null .
> 
> Is there any standarad API or workaround to get the Host information .

ServletRequest.getServerName()

This works irrespective of the underlying protocol.

Mark

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

Reply via email to