method

proxy_service

proxy_service(req, res)
public

No documentation available.

# File lib/webrick/httpproxy.rb, line 65
    def proxy_service(req, res)
      # Proxy Authentication
      proxy_auth(req, res)      

      begin
        self.send("do_#{req.request_method}", req, res)
      rescue NoMethodError
        raise HTTPStatus::MethodNotAllowed,
          "unsupported method `#{req.request_method}'."
      rescue => err
        logger.debug("#{err.class}: #{err.message}")
        raise HTTPStatus::ServiceUnavailable, err.message
      end

      # Process contents
      if handler = @config[:ProxyContentHandler]
        handler.call(req, res)
      end
    end