← 返回卡片

原书出处

RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)

12 附录D:HyperCLI操作参考

First Edition · 核验版本的摘录快照 · 导入于 2026-11-14T06:41:15.491Z

Here’s a super simple HyperLANG script: GOTO https://company-atk.herokuapp.com And here’s how you do it: Make sure you have installed the latest update of the HyperCLI: $> npm install -g @mamund/hyper Launch the HyperCLI REPL: $> hyper Type the following command and press Enter: > GOTO https://company-atk.herokuapp.com It may take a few seconds for the sample service to fire up, but eventually you should see the following response: STATUS 200 https://company-atk.herokuapp.com application/forms+json; charset=utf-8 You can also view the request/response details with these commands: SHOW REQUEST SHOW RESPONSE SHOW METADATA SHOW ALL SHOW URL SHOW STATUS SHOW CONTENT-TYPE SHOW HEADERS Finally, you can place all the HyperLANG commands in a text file and then pipe that file into the HyperCLI, like this: $> hyper <hello-hyper.script Congratulations! You’ve just created your first HyperLANG program.

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/app04.xhtml

EPUB SHA-256:db552473a29e61f8a9429a17bbb5c0a47985d7cbbfd2d402bce45fc4b11ee389