摘要: 本文描述Web API实现内容协商(content negotiation)。 The HTTP specification (RFC 2616) defines content negotiation as “the process of selecting the best representa 阅读全文
posted @ 2016-09-03 21:39 _DN 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Model Validation in ASP.NET Web API 原文:http://www.asp.net/web api/overview/formats and model binding/model validation in aspnet web api 本文主要讲述Web API中 阅读全文
posted @ 2016-09-03 20:16 _DN 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 编译原理 词法分析04 NFA & 代码实现 0.术语 NFA 非确定性有穷自动机nondeterministic finite automation。 ε 转换ε transition 是无需考虑输入串(且无需消耗任何字符)就有可能发声的转换,它可看作是一个空串的“匹配”。 转换表transiti 阅读全文
posted @ 2016-09-03 17:02 _DN 阅读(1211) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.asp.net/web api/overview/formats and model binding/media formatters 1. 网络媒体类型 媒体类型,也叫作MIME类型,表示数据的格式。在HTTP中,MIME描述了消息体的格式。 MIME类型有两个字符串组 阅读全文
posted @ 2016-09-03 13:13 _DN 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 0.术语 DFA Deterministic finite automation,确定性有穷自动机。一般用于翻译正则表达式。 状态state DFA中的圆圈,表示模式在识别过程中的位置。 转换transition DFA中的箭头,该转换依赖于箭头上的字符。 初始状态start state DFA中识 阅读全文
posted @ 2016-09-03 11:05 _DN 阅读(676) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.asp.net/web api/overview/web api routing and actions/create a rest api with attribute routing 作为Restful API设计的一个参考,将其记录下来。 控制器上设添加属性: Ro 阅读全文
posted @ 2016-09-03 00:18 _DN 阅读(163) 评论(0) 推荐(0) 编辑