Git Product home page Git Product logo

epipe's Introduction

epipe

epipe是一个方便Web项目调试、检测的开源项目;

  • 监听http请求,观察网络web请求、及参数、数据响应

  • 分析网络性能

  • 调试项目、请求改写、转发

  • 自定义路由

安装

npm install epipe -g

使用

epipe port=8189 mod=fengchao conser

参数说明

port 代理端口 默认8188
file 规则文件 以当前路径为相对路径;或指定为绝对路径位置
mod 规则模块名 指定当前使用规则集合 mod=fengchao
debug 调试方式 再规则中利用debug切换调试模式 默认false
conser 打开命令行交互 epipe conser 无需参数
  • 使用自定义规则文件

epipe port=8189 mod=fengchao file=fengchao-pipe.js

交互命令

  • 使用交互命令设置参数、可以动态增加服务、加载规则、切换显示方式、改变调试方式
    epipe
    > listen 8188
    > mod fengchao
    > debug true
    > fiddle fengchao
    > include ./rules/fengchao
listen 在监听端口创建服务 listen 8181 ; 创建新的监听端口
include 加载规则文件 include fc.js 将规则文件加入规则库
mod 规则模块名 mod fengchao 指定当前使用规则集合
debug 调试方式 debug true 改变调试模式
showlog 显示访问日志
hidelog 隐藏访问日志 默认即隐藏访问日志
help 显示可用命令及帮助

nirvana / phoenix 用法说明

  • 启动本地开发环境,确定能够正常访问

  • 启动 epipe port=8189 mod=fengchao conser

    • port 表示代理端口
    • mod 表示规则集合 nirvana/ phoenix 通用为fengchao
    • conser 表示进入epipe命令交互方式
  • 配置本地http代理服务器,不要配置https代理

    • http 代理 127.0.0.1 8189
    • 确保'跳过本地地址的代理服务器'
    • 建议用pac方式配置
    • 参考内部代理pac http://uedc.baidu.com/proxy
    • 联调 fctest配置host为对应服务器IP地址即可
  • 访问任意网站,在epipe命令中输入showlog检查是否显示历史记录

  • 访问nirvana / phoenix 是否能够正常访问及显示log

  • 进入联调模式,在epipe 中输入 debug true

    • 输入info 查看状态信息
    • debug false 退出联调模式

epipe's People

Contributors

linkwisdom avatar

Watchers

 avatar

Forkers

shanshanok

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.