# File test/pseudo_req_res.rb, line 121
    def publish(script_name, request, response, logger)
      @publish_call += 1
      @publish_script_name = script_name
      @publish_request_path = request.path
      response.doc_path = @publish_doc_path if @publish_doc_path
      response.local_path = @publish_local_path if @publish_local_path
      logger.debug('pseudo publish.')
      response.status = 200
      response.set_header('Content-Type', @publish_content_type)
      response.start_body
      response << @publish_messg_body if (request.method != 'HEAD')
      nil
    end