知识卡片

操作参考卡 · 5175

由表单元数据构造请求

理解等级:中级

GOTO WITH-FORM <name>按命名表单的URL、METHOD、ENCODING、FIELDS构造请求;书中这一便利入口注明仅限SIREN。WITH-STACK可用栈顶变量填值,WITH-DATA <name=value&…>提供临时值。控件元数据决定动作边界,调用者仍需提供有效业务数据,不能把任意JSON字段当作可执行表单。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 附录D:HyperCLI操作参考 · 查看原书依据

      .. WITH-FORM <name}ǀ$#> Uses the metadata of the named form (URL, METHOD, ENCODING, FIELDS) to construct an HTTP request (SIREN-only) .. WITH-STACK Uses the top-level stack item as a set of vars for other operations (e.g., to fill in forms, supply query string values, headers, etc.) .. WITH-DATA <name=value&…ǀ$#> Fills in forms with ad hoc data

    参考来源

    - 位置:《RESTful Web API Patterns and Practices Cookbook》Appendix D. Using the HyperCLI(来源项目book-sources,源文件:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/app04.xhtml) - 结论依据:原文直接给出相应职责、操作或比较;本卡保留其用途与适用边界,不将历史接口表述当作当前工具验证。 - 原始内容:.. WITH-FORM <name}ǀ$#> Uses the metadata of the named form (URL, METHOD, ENCODING, FIELDS) to construct an HTTP request (SIREN-only) .. WITH-STACK Uses the top-level stack item as a set of vars for other operations (e.g., to fill in forms, supply query string values, headers, etc.) .. WITH-DATA <name=value&…ǀ$#> Fills in forms with ad hoc data