Coder Social home page Coder Social logo

http-auto-responder's Introduction

HTTP Auto Responder

Useful tool for static responses. It's like Fiddler's AutoResponder.

Features

  • Rule definitions with matching methods.

  • Simple UI to manage Rules and Responses. You can navigate /http-auto-responder after the execution.

  • FARX & SAZ file import.

  • JSON files or boltdb for rules and responses storage.

  • Besides of FARX importing, you can use directly serve FARX files but no UI support for managing it.

  • Templating on response using a basic model created from incoming request.

    FARX Files

    FARX files can be served directly. If you specify a FARX containing dir in the config file, tool reads all FARX files recursively and serve it accordingly. No UI support if you are using FARX files.
    

    FARX files reloding

    There is a reload enpoint available for if you specify FARX dir. Example;
    curl http://localhost/http-auto-responder/reload?path=farx_test.farx
    

Installation

go get -u github.com/asalih/http-auto-responder

Then edit config.json

Example

The tool provides minimum UI except if you want to use FARX files. After you get the source or get the release binaries then just edit the config file as you wish then you good to go!

Config file needs a storage configuration and a port for to listening http requests. You can not use multiple storage option, please pick one according to your needs.

  • databaseName: boltDB database name.
  • jsonsFolderPath: rules and responses can be stored as json serialized if you specify the folder path.
  • farxFilesFolderPath: farx files can be served directly if you specify the folder path.

In this example below, FARX folder specified.

{
    "databaseName": "",
    "jsonsFolderPath": "",
    "farxFilesFolderPath": "./farx",
    "port": 80
}

ToDo

  • How can we use SSL? or should we?

http-auto-responder's People

Contributors

asalih avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

http-auto-responder's Issues

Usage instructions

Can you please include some sample commands about how to use the tool.

Configurable latency per rule

As you may know Fiddler's AutoResponder allows us to configure latency per-rule.
That's a great feature while using AutoResponder to mimic real-world requests/responses.
I hope you can have some free time to add this feature.

Video demo, tutorrial

Can you make an introductory video? I don't know how to configure and use it.
Thank you very much.

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.