From: Daniel Finnie Date: 2008-04-19T11:10:04+09:00 Subject: Re: Webrick override HTTPResponse::setup_header Hi, As Eric said, it's not obvious what end result you are expecting but it appears you want to change the headers of the response. If so, you can do something like this: class MyServlet < HTTPServlet::AbstractServlet def do_Get(req, res) res["header_name"] = "header_value" ... end end Webrick is not very well documented but the method names and their source code are available here: http://ruby-doc.org/stdlib/ Dan On Fri, Apr 18, 2008 at 6:40 AM, andrey wrote: > Hi, all. > > My subj solution: > > class MyServlet < HTTPServlet::AbstractServlet > def do_GET(req, res) > class < def setup_header() > ... my code ... > end > end > .... > end > .... > end > > I think my solution is't good and is't true ruby way. > Another solution? > >