All Projects → jcchavezs → Httpmole

jcchavezs / Httpmole

A HTTP mole service

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Httpmole

mock-json-server
A mock web server using a JSON file with live-reload support.
Stars: ✭ 31 (-75.59%)
Mutual labels:  mock-server, http-server
Raxx kit
Get started with Raxx + Elixir
Stars: ✭ 120 (-5.51%)
Mutual labels:  http-server
Httpbin
HTTP Request & Response Service, written in Python + Flask.
Stars: ✭ 10,423 (+8107.09%)
Mutual labels:  http-server
Hummingbird
Lightweight, flexible HTTP server framework written in Swift
Stars: ✭ 114 (-10.24%)
Mutual labels:  http-server
Srv
minimalist http(s) server and file browser
Stars: ✭ 109 (-14.17%)
Mutual labels:  http-server
Apimock
A mock API server.
Stars: ✭ 117 (-7.87%)
Mutual labels:  mock-server
Mock server
A lightweight Sinatra application backed by sqlite that can mock ReST responses. Has interface to easily create, search & maintain mocks. No need to program mocks into a language specific implementation.
Stars: ✭ 107 (-15.75%)
Mutual labels:  mock-server
Watsonwebserver
Watson is the fastest, easiest way to build scalable RESTful web servers and services in C#.
Stars: ✭ 125 (-1.57%)
Mutual labels:  http-server
Stdinho
🔌 Turn any STDIN/STDOUT into HTTP server
Stars: ✭ 120 (-5.51%)
Mutual labels:  http-server
Purescript Httpure
A web framework written in PureScript.
Stars: ✭ 112 (-11.81%)
Mutual labels:  http-server
Qhttpengine
HTTP server for Qt applications
Stars: ✭ 112 (-11.81%)
Mutual labels:  http-server
Mitm Scripts
🔄 A collection of mitmproxy inline scripts
Stars: ✭ 109 (-14.17%)
Mutual labels:  mock-server
Mockey
Mockey is a tool for testing application interactions over http, with a focus on testing web services, specifically web or native applications that consume XML, JSON, and HTML. Mockey's purpose is to be a simple front end to writing mock-test-responses to the file system for persistence to git.
Stars: ✭ 117 (-7.87%)
Mutual labels:  mock-server
Daraja Framework
A lightweight HTTP server framework for Object Pascal (Delphi 2009+/Free Pascal 3.0) based on Indy
Stars: ✭ 108 (-14.96%)
Mutual labels:  http-server
Owindog
Owin Web Server(base on libuv) for asp.net or netcore
Stars: ✭ 123 (-3.15%)
Mutual labels:  http-server
Netty Rest
Yet another high performance REST server based on Netty
Stars: ✭ 107 (-15.75%)
Mutual labels:  http-server
Reverse proxy plug
🔛 an Elixir reverse proxy Plug with HTTP/2, chunked transfer and path proxying support
Stars: ✭ 112 (-11.81%)
Mutual labels:  http-server
Swiftyhttp
A simple GCD based HTTP client and server, written in 'pure' Swift
Stars: ✭ 115 (-9.45%)
Mutual labels:  http-server
Java Express
🧪 HTTP Framework based on expressjs, no dependencies, simple usage. Can be used to quickly spin up an API or serve local files.
Stars: ✭ 125 (-1.57%)
Mutual labels:  http-server
Qtnetworkng
QtNetwork Next Generation. A coroutine based network framework for Qt/C++, with more simpler API than boost::asio.
Stars: ✭ 125 (-1.57%)
Mutual labels:  http-server

httpmole

Build Status

httpmole provides a HTTP mock server that will act as a mole among your services, telling you everything http clients send to it and responding them whatever you want it to respond. Just like an actual mole.

Features:

  • Use response-status and response-header to quickly spin up a http server.
  • Use response-file to modify the response in real time using a text editor.
  • Use response-from to act as a proxy and be able to inspect the request/response going to a given service.

Install

go install github.com/jcchavezs/httpmole/cmd/httpmole

Usage

Using the binary

httpmole -p=8082 -response-status=200

or using a response file:

httpmole -p=8082 -response-file=./myresponse.json
// myresponse.json
{
    "status_code": 200,
    "headers": {
        "content-type": "application/json"
    },
    "body": {
        "message": "I am real"
    }
}

or proxying a service to inspect the incoming requests:

httpmole -p=8082 -response-from=therealservice:8082

Using docker

docker run -p "10080:10080" jcchavezs/httpmole -response-status=201

or pass a response file over volumes

docker run -p "10080:10080" -v `pwd`/response.json:/httpmole/response.json jcchavezs/httpmole -response-file=/httpmole/response.json

Docker image is hosted in dockerhub

httpmole is heavily inspired by httplab

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].