← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 4927.a.1.a

运行期解析请求元数据

理解等级:中级

客户端可一次实现表单解释器,再从响应中读取目标地址、HTTP方法、编码、字段及约束,按当次元数据构造请求。这样地址和字段次序变化时不必重写每个请求。机器客户端还需要把字段映射到本地已有数据;只认识表单结构并不能推导新字段的业务值。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 用超媒体思考与设计 · 查看原书依据

      The way to avoid this is to program the client application to recognize and honor these request details in the metadata sent to the client at runtime. We’ll cover this in Recipe 4.9. Again, HTML has been doing this kind of work for decades. The following is an example of the same information as runtime metadata:

    参考来源

    - 位置:《RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)》第02章《用超媒体思考与设计》(来源项目 book-sources;源文件:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/ch02.xhtml;小节:韧性客户端) - 结论依据:原文以客户端可一次实现表单解释器,再从响应中读取目标地址、HTTP方法、编码、字段及约束,按当次元数据构造请求的机制或场景为依据;同小节余文补充本卡所列条件,按2022年原书语境整理。 - 原始内容:The way to avoid this is to program the client application to recognize and honor these request details in the metadata sent to the client at runtime. We’ll cover this in Recipe 4.9. Again, HTML has been doing this kind of work for decades. The following is an example of the same information as runtime metadata: