Web API
object、
这个作者很懒,什么都没留下…
展开
-
Vue通过Web API下载本地服务器文件
后台api接口 [HttpGet] public HttpResponseMessage DownloadFile(string fileName) { //fileName = "123.txt"; //文件的服务器地址 string filePath = HttpContext.Current.Server.MapPath("~/kaoqinwj/"+fileName);//路径原创 2021-06-28 00:00:14 · 798 阅读 · 1 评论 -
Web API 配置和服务
// Web API 配置和服务 GlobalConfiguration.Configuration.Formatters.XmlFormatter.SupportedMediaTypes.Clear(); <httpProtocol> <customHeaders> <!--响应类型 (用逗号隔开,对预检请求的应答中明确了客户端所要访问的资源允许使用的方法或方法列表GET,HEAD,POST,PUT,DELETE,CONNECT,O原创 2021-06-14 17:23:09 · 638 阅读 · 0 评论