Giter Club home page Giter Club logo

request-catcher's Introduction

request-catcher

Catch and debug HTTP packets or forward them to a local host

A public instance can be found at req.cldn.pro.

Installation

# clone repository
git clone https://github.com/cloudnode-pro/request-catcher/
# navigate to the repository directory
cd request-catcher
# install dependencies
npm install
# build the software and run it
npm start:build

By default, an HTTP server will be started and listen on port 80. You can change that and also enable HTTPS by creating a config.json file or by passing command line arguments.

Configuration

  • tls - TLS options. If set, in addition to HTTP, the server will also serve HTTPS. Optional.
    • cert - Path to the TLS/SSL certificate or certificate chain
    • key - Path to the TLS/SSL private key
    • port - Port to use for HTTPS
  • port - Port to use for HTTP
  • serverName - Server name broadcasted in the Server HTTP header. Set to undefined to disable. Optional.

Command line arguments

You can pass the following CLI args after node . or npm start --:

  -c, --cert <path>    Path to the TLS/SSL certificate or certificate chain
  -k, --key <path>     Path to the TLS/SSL private key
  -s, --https <port>   Port to use for HTTPS
  -p, --http <port>    Port to use for HTTP
  -n, --name <name>    Server name broadcasted in the Server HTTP header

request-catcher's People

Contributors

dependabot[bot] avatar zefir-git avatar

request-catcher's Issues

Unit tests

Write unit tests with mocha and c8 for coverage report

Extra HTTP messages appended from socket

Socket appends data from other requests
image

We are probably checking only the source port (and not IP) and sockets with the same port, but different IP get the same socket ID.

Automatically forward future requests

When the checkbox in the forward request modal is ticked, also automatically forward requests in the same namespace to the same URL.

When the user opens the modal again and unchecks the tickbox, stop forwarding new requests. The user should not have to submit the form again.

Add a green ping dot animation (like https://tailwindcss.com/docs/animation#ping) to the "Forward" button when the forwarding of new requests is active.

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.