implement methods from WEBrick::HTTPUtils
Merge pull request #338 from burns/httputils

implement methods from WEBrick::HTTPUtils