Skip to content

bbtfr/proxy.cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A HTTP Proxy written in Crystal

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published