随笔分类 -  WebApi

摘要:由上图可以看出消息处理器的使用场合和使用方法。 使用场合: HttpServer 得到请求时. public static class WebApiConfig { public static void Register(HttpConfiguration config) { config.Mess 阅读全文
posted @ 2016-02-18 17:01 haiziguo 阅读(700) 评论(0) 推荐(0) 编辑
摘要:void 返回204状态码 HttpResponseMessage Convert directly to an HTTP response message. IHttpActionResult Call ExecuteAsync to create an HttpResponseMessage, 阅读全文
posted @ 2016-02-18 16:04 haiziguo 阅读(4182) 评论(0) 推荐(0) 编辑
摘要:1.新建webapi项目 2.配置WebApiConfig public const string DEFAULT_ROUTE_NAME = "MyDefaultRoute"; public static void Register(HttpConfiguration config) { config.Routes.MapHttpR... 阅读全文
posted @ 2015-04-10 23:57 haiziguo 阅读(10856) 评论(0) 推荐(2) 编辑

点击右上角即可分享
微信分享提示