Re:Show HN: 100 LOC Ruby forward proxy using only standard l...
by hlasdjlfhalwjk on Monday January 18, 2021 @05:21AM
(#25820244)
A little bit more than 100 LoC (`cloc lib bin` gives me 147 lines of Ruby) but still nice work.
[ Parent
| on HN ]
Re:Show HN: 100 LOC Ruby forward proxy using only standard l...
by zaltekk on Monday January 18, 2021 @09:19AM
(#25821993)
That should be `cloc exe lib`. `bin` has distribution-related auto generated scripts. The actual entry point script is in `lib`.
From the sloc count on GitHub just the server file alone is listed as 149.
This also uses WEBrick to do the HTTP parsing. The webrick gem is no longer bundled with Ruby as of 3.0.0.