How to access ServerVariables in AspnetCore 1.0

后端 未结 2 1481
醉梦人生
醉梦人生 2020-12-20 22:38

In exisiting .Net Web Site, Server Variables is accessed using

HttpContext.Current.Request.ServerVariables[\"HTTP_ACCEPT_LANGUAGE\"]

How t

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-20 23:37

    You can't because the app now runs out of process. However, as humblelistener pointed out most of this information is available in other places. Was Accept Language the only one you needed?

提交回复
热议问题