Sha256: d730bbabb7201549887782bb1833b4a615620d7bf297ece6225617ea9968af11
Contents?: true
Size: 965 Bytes
Versions: 11
Compression:
Stored size: 965 Bytes
Contents
# encoding: utf-8 module TestServer class GeneratorController < ApplicationController add_breadcrumb I18n.t('views.root.link'), :root_path add_breadcrumb I18n.t('views.generator.link'), :generator_path def index end def xhr add_breadcrumb I18n.t('views.generator.xhr.link'), :generator_xhr_path @urls = [ streaming_plain_url, streaming_eicar_url, streaming_random_url, string_plain_url, string_eicar_url, string_sleep_url, string_random_url, generator_xhr_url, "http://#{request.host_with_port}/static/plain.html" ] @count = params[:count] @url = params[:url] @timeout = params[:timeout] @repeat = params[:repeat] end private def default_params { count: 10, timeout: 1_000, repeat: 'false', } end end end
Version data entries
11 entries across 11 versions & 1 rubygems