whistle.helloworld

0.1.1 • Public • Published

whistle.helloworld

whistle插件编写的例子,主要功能是显示转发到helloworld的http、https、websocket请求,其它whistle插件的开发方式可以参考该例子 whistle.helloworld

Usage

  1. 先安装启动whistle(v0.8.0+):https://github.com/avwo/whistle

  2. 安装 whistel.helloworld 插件

     $ npm install whistle.helloworld -g
    
  3. 安装启动whistle,及安装完whistle.helloworld插件后,打开whistle配置页面上方菜单栏的 About 菜单按钮,可以看到whistle已经自动加载好helloworld的插件

    about

  4. 通过配置whistle规则,转发请求到helloworld插件

     helloworld://test www.ifeng.com www.qq.com
     echo.websocket.org/?encoding=text helloworld://test123
    

    rule

  5. 查看转发到helloworld插件的请求

    启用HTTPS,分别访问如下url:

    plugin

Package Sidebar

Install

npm i whistle.helloworld

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • avwu