Skip to content

Instantly share code, notes, and snippets.

View pankajdoharey's full-sized avatar
🏠
Working from home

Pankaj Doharey pankajdoharey

🏠
Working from home
View GitHub Profile
@pankajdoharey
pankajdoharey / proxy.rb
Created September 19, 2020 03:07 — forked from torsten/proxy.rb
A quick HTTP proxy server in Ruby.
#!/usr/bin/env ruby
# A quick and dirty implementation of an HTTP proxy server in Ruby
# because I did not want to install anything.
#
# Copyright (C) 2009-2014 Torsten Becker <torsten.becker@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,