.net 如何获取标题值
如何从WCF web API中的web方法访问标题值?您可以尝试以下方法: (使用System.Web;).net 如何获取标题值,.net,wcf,http,wcf-web-api,asp.net-web-api,.net,Wcf,Http,Wcf Web Api,Asp.net Web Api,如何从WCF web API中的web方法访问标题值?您可以尝试以下方法: (使用System.Web;) HttpUtility.UrlDecode(HttpContext.Current.Request.Headers["myValue"]);
HttpUtility.UrlDecode(HttpContext.Current.Request.Headers["myValue"]);