Code Monkey home page Code Monkey logo

haskell-http-proxy's Introduction

Haskell Reverse HTTP Proxy

A dead simple reverse HTTP proxy. Not intended for production usage, just a learning experience in Haskell.

Getting started

Fire up the server, ensuring that you have a backend server running on port 3000 (currently hardcoded)

stack build
stack exec proxy-exe 4000

and fire a HTTP request at it.

curl http://localhost:4000/example/path

Dependencies

Currently has no HTTP-specific dependencies:

  • network
  • attoparsec
  • bytestring
  • HUnit (for testing)

Future features

To be added in no particular order (if I feel like it)

  • Config files - apache nginx compatible is a good starting point for features
  • Benchmarking - compare to mighty to see how much room for improvement there is (http://www.mew.org/~kazu/proj/mighttpd/en/)
  • Multiple backend servers with load balancing algorithm
  • Logging
  • Header replacement
  • Timeouts (send back 504)

haskell-http-proxy's People

Contributors

jtfell avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

liujinglj

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.