M MathiasM Active Member Licensed User May 25, 2021 #1 Hello Is is possible to retrieve all headers from a ServletRequest? Now we only can get the value if we supply the name as string via the GetHeader method. Would be nice to even get it in a Map, just like the ParameterMap for Query Parameters. It seems possible in Jetty when a ServerletRequest is casted to a HTTPServletRequest: https://stackoverflow.com/questions...ow-to-get-all-the-headers-from-servletrequest But I have no idea how to cast that in Java, as a HTTPServelRequest doesn't exist in B4J. Thanks for any help Last edited: May 25, 2021
Hello Is is possible to retrieve all headers from a ServletRequest? Now we only can get the value if we supply the name as string via the GetHeader method. Would be nice to even get it in a Map, just like the ParameterMap for Query Parameters. It seems possible in Jetty when a ServerletRequest is casted to a HTTPServletRequest: https://stackoverflow.com/questions...ow-to-get-all-the-headers-from-servletrequest But I have no idea how to cast that in Java, as a HTTPServelRequest doesn't exist in B4J. Thanks for any help
M MathiasM Active Member Licensed User May 25, 2021 #2 I found the answer via the Similar Threads forum function. Thanks Erel: https://www.b4x.com/android/forum/threads/server-list-all-request-headers-in-a-handler-class.123079/ Upvote 0
I found the answer via the Similar Threads forum function. Thanks Erel: https://www.b4x.com/android/forum/threads/server-list-all-request-headers-in-a-handler-class.123079/