proxy.cr

A HTTP Proxy written in Crystal

proxy

A HTTP Proxy written in Crystal inspired by Ruby's WEBrick::HTTPProxyServer

Installation

Add this to your application's shard.yml:

dependencies:
  proxy:
    github: bbtfr/proxy.cr

Usage

require "http/proxy"

server = HTTP::Proxy.new(8080)

puts "Listening on http://127.0.0.1:8080"
server.listen

Development

  • Basic HTTP Proxy: GET, POST, PUT, DELETE support
  • Basic HTTP Proxy: OPTIONS support
  • HTTPS Proxy: CONNECT support
  • Make context.request & context.response writable
  • MITM HTTPS Proxy

Contributing

  1. Fork it ( https://github.com/bbtfr/proxy/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • bbtfr Theo Li - creator, maintainer
Repository

proxy.cr

Owner
Statistic
  • 8
  • 2
  • 0
  • 0
  • 0
  • over 6 years ago
  • February 10, 2017
License

MIT License

Links
Synced at

Sat, 20 Apr 2024 02:42:48 GMT

Languages