返回主题:故障排查与根因分析

知识卡片

操作参考卡 · 5177

查看响应历史排查交互

理解等级:中级

SHOW ALL查看完整交互,SHOW REQUEST检查发出的URL、方法、查询和体;SHOW METADATA或URL、STATUS、CONTENT-TYPE、HEADERS查看响应元信息。SHOW RESPONSE读取响应栈顶正文,POP、CLEAR和LEN管理保留的响应。先辨别请求构造与远端返回,避免只看正文而误判HTTP状态。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

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

      DISPLAYǀSHOW Shows saved response (from top of the LIFO stack) .. ALL Returns the complete interaction (request, response metadata, response body) .. REQUEST Returns request info (URL, method, query string, body, and headers) .. METADATAǀMETA Returns the response metadata (URL, status, and headers) .. RESPONSEǀPEEK Returns response body from the top of the stack .. URLǀHREF Returns actual URL of the response .. STATUSǀSTATUS-CODE Returns HTTP status of the response .. CONTENT-TYPE Returns HTTP content-type of the response .. HEADERS Returns the complete HTTP header collection of the response .. POP Removes response from top of the stack .. CLEARǀFLUSH Removes all responses from the stack .. LENǀLENGTH Returns length of saved stack

    参考来源

    - 位置:《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) - 结论依据:原文直接给出相应职责、操作或比较;本卡保留其用途与适用边界,不将历史接口表述当作当前工具验证。 - 原始内容:DISPLAYǀSHOW Shows saved response (from top of the LIFO stack) .. ALL Returns the complete interaction (request, response metadata, response body) .. REQUEST Returns request info (URL, method, query string, body, and headers) .. METADATAǀMETA Returns the response metadata (URL, status, and headers) .. RESPONSEǀPEEK Returns response body from the top of the stack .. URLǀHREF Returns actual URL of the response .. STATUSǀSTATUS-CODE Returns HTTP status of the response .. CONTENT-TYPE Returns HTTP content-type of the response .. HEADERS Returns the complete HTTP header collection of the response .. POP Removes response from top of the stack .. CLEARǀFLUSH Removes all responses from the stack .. LENǀLENGTH Returns length of saved stack