implement methods from WEBrick::HTTPUtils

Re: #334