-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfile.testing_test_rackup_ci_files.html
110 lines (90 loc) · 4.1 KB
/
file.testing_test_rackup_ci_files.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=no'>
<meta name='apple-touch-fullscreen' content='yes'>
<meta name='apple-mobile-web-app-capable' content='yes'>
<meta name='apple-mobile-web-app-status-bar-style' content='rgba(228,228,228,1.0)'>
<title>File: Testing - test/rackup/ci-*.ru files — Puma master</title>
<link rel='stylesheet' type='text/css' href='../css/y_fonts.css' />
<link rel='stylesheet' type='text/css' href='../css/highlight.github.css' />
<link rel='stylesheet' type='text/css' href='../css/y_style.css' />
<link rel='stylesheet' type='text/css' href='../css/y_list.css' />
<link rel='stylesheet' type='text/css' href='../css/y_color.css' />
<script type='text/javascript'>
var pathId = "testing_test_rackup_ci_files",
relpath = '';
var t2Info = {
CSEP: '.',
ISEP: '#',
NSEP: '::'
};
</script>
<script type='text/javascript' charset='utf-8' src='../js/highlight.pack.js'></script>
<script type='text/javascript' charset='utf-8' src='../js/y_app.js'></script>
</head>
<body>
<svg id='y_wait' class viewBox='0 0 90 90'></svg>
<div id='settings' class='hidden'></div>
<div id='y_list' class='d h'>
<header id='list_header'></header>
<nav id= 'list_nav' class='y_nav l_nav'>
<ul id='list_items'></ul>
</nav>
</div>
<div id='y_toc' class='f h'>
<header id='toc_header'></header>
<nav id= 'toc_nav' class='y_nav t_nav'>
<ol id='toc_items'></ol>
</nav>
</div>
<div id='y_main' tabindex='-1'>
<header id='y_header'>
<div id='y_menu'>
<a id='home_no_xhr' href='/'>Home</a> »
<a href='.'>Puma master</a> »
<a href='_index.html'>Index</a> »
<span class='title'><a id='t2_doc_top' href='#'>File: Testing - test/rackup/ci-*.ru files ▲</a></span>
</div>
<a id='list_href' href="class_list.html"></a>
<div id='y_measure_em' class='y_measure'></div>
<div id='y_measure_vh' class='y_measure'></div>
<span id='y_measure_50pre' class='y_measure'><code>123456789_123456789_123456789_123456789_123456789_</code></span>
</header>
<div id='content' class='file'>
<h1>Testing - test/rackup/ci-*.ru files</h1>
<h2>Overview</h2>
<p><a href="Puma.html" title="Puma (module)"><code>Puma</code></a> should efficiently handle a variety of response bodies, varying both by size
and by the type of object used for the body.</p>
<p>Five rackup files are located in 'test/rackup' that can be used. All have their
request body size (in kB) set via <code>Body-Conf</code> header or with <code>ENV['CI_BODY_CONF']</code>.
Additionally, the ci_select.ru file can have it's body type set via a starting
character.</p>
<ul>
<li><strong>ci_array.ru</strong> - body is an <code>Array</code> of 1kB strings. <code>Content-Length</code> is not set.</li>
<li><strong>ci_chunked.ru</strong> - body is an <code>Enumerator</code> of 1kB strings. <code>Content-Length</code> is not set.</li>
<li><strong>ci_io.ru</strong> - body is a File/IO object. <code>Content-Length</code> is set.</li>
<li><strong>ci_string.ru</strong> - body is a single string. <code>Content-Length</code> is set.</li>
<li><strong>ci_select.ru</strong> - can be any of the above.</li>
</ul>
<p>All responses have 25 headers, total length approx 1kB. ci_array.ru and ci_chunked.ru
contain 1kB items.</p>
<p>All can be delayed by a float value (seconds) specified by the <code>Dly</code> header</p>
<p>Note that rhe <code>Body-Conf</code> header takes precedence, and <code>ENV['CI_BODY_CONF']</code> is
only read on load.</p>
<h2>ci_select.ru</h2>
<p>The ci_select.ru file allows a starting character to specify the body type in the
<code>Body-Conf</code> header or with <code>ENV['CI_BODY_CONF']</code>.</p>
<ul>
<li><strong>a</strong> - array of strings</li>
<li><strong>c</strong> - chunked (enum)</li>
<li><strong>s</strong> - single string</li>
<li><strong>i</strong> - File/IO</li>
</ul>
<p>A value of <code>a100</code> would return a body as an array of 100 1kB strings.</p>
<div id='footer'></div>
</div> <!-- content -->
</div> <!-- y_main -->
</body>
</html>