sorbet-result 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2961 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `cgi` gem.
5
- # Please instead update this file by running `bin/tapioca gem cgi`.
6
-
7
-
8
- # == Overview
9
- #
10
- # The Common Gateway Interface (CGI) is a simple protocol for passing an HTTP
11
- # request from a web server to a standalone program, and returning the output
12
- # to the web browser. Basically, a CGI program is called with the parameters
13
- # of the request passed in either in the environment (GET) or via $stdin
14
- # (POST), and everything it prints to $stdout is returned to the client.
15
- #
16
- # This file holds the CGI class. This class provides functionality for
17
- # retrieving HTTP request parameters, managing cookies, and generating HTML
18
- # output.
19
- #
20
- # The file CGI::Session provides session management functionality; see that
21
- # class for more details.
22
- #
23
- # See http://www.w3.org/CGI/ for more information on the CGI protocol.
24
- #
25
- # == Introduction
26
- #
27
- # CGI is a large class, providing several categories of methods, many of which
28
- # are mixed in from other modules. Some of the documentation is in this class,
29
- # some in the modules CGI::QueryExtension and CGI::HtmlExtension. See
30
- # CGI::Cookie for specific information on handling cookies, and cgi/session.rb
31
- # (CGI::Session) for information on sessions.
32
- #
33
- # For queries, CGI provides methods to get at environmental variables,
34
- # parameters, cookies, and multipart request data. For responses, CGI provides
35
- # methods for writing output and generating HTML.
36
- #
37
- # Read on for more details. Examples are provided at the bottom.
38
- #
39
- # == Queries
40
- #
41
- # The CGI class dynamically mixes in parameter and cookie-parsing
42
- # functionality, environmental variable access, and support for
43
- # parsing multipart requests (including uploaded files) from the
44
- # CGI::QueryExtension module.
45
- #
46
- # === Environmental Variables
47
- #
48
- # The standard CGI environmental variables are available as read-only
49
- # attributes of a CGI object. The following is a list of these variables:
50
- #
51
- #
52
- # AUTH_TYPE HTTP_HOST REMOTE_IDENT
53
- # CONTENT_LENGTH HTTP_NEGOTIATE REMOTE_USER
54
- # CONTENT_TYPE HTTP_PRAGMA REQUEST_METHOD
55
- # GATEWAY_INTERFACE HTTP_REFERER SCRIPT_NAME
56
- # HTTP_ACCEPT HTTP_USER_AGENT SERVER_NAME
57
- # HTTP_ACCEPT_CHARSET PATH_INFO SERVER_PORT
58
- # HTTP_ACCEPT_ENCODING PATH_TRANSLATED SERVER_PROTOCOL
59
- # HTTP_ACCEPT_LANGUAGE QUERY_STRING SERVER_SOFTWARE
60
- # HTTP_CACHE_CONTROL REMOTE_ADDR
61
- # HTTP_FROM REMOTE_HOST
62
- #
63
- #
64
- # For each of these variables, there is a corresponding attribute with the
65
- # same name, except all lower case and without a preceding HTTP_.
66
- # +content_length+ and +server_port+ are integers; the rest are strings.
67
- #
68
- # === Parameters
69
- #
70
- # The method #params() returns a hash of all parameters in the request as
71
- # name/value-list pairs, where the value-list is an Array of one or more
72
- # values. The CGI object itself also behaves as a hash of parameter names
73
- # to values, but only returns a single value (as a String) for each
74
- # parameter name.
75
- #
76
- # For instance, suppose the request contains the parameter
77
- # "favourite_colours" with the multiple values "blue" and "green". The
78
- # following behavior would occur:
79
- #
80
- # cgi.params["favourite_colours"] # => ["blue", "green"]
81
- # cgi["favourite_colours"] # => "blue"
82
- #
83
- # If a parameter does not exist, the former method will return an empty
84
- # array, the latter an empty string. The simplest way to test for existence
85
- # of a parameter is by the #has_key? method.
86
- #
87
- # === Cookies
88
- #
89
- # HTTP Cookies are automatically parsed from the request. They are available
90
- # from the #cookies() accessor, which returns a hash from cookie name to
91
- # CGI::Cookie object.
92
- #
93
- # === Multipart requests
94
- #
95
- # If a request's method is POST and its content type is multipart/form-data,
96
- # then it may contain uploaded files. These are stored by the QueryExtension
97
- # module in the parameters of the request. The parameter name is the name
98
- # attribute of the file input field, as usual. However, the value is not
99
- # a string, but an IO object, either an IOString for small files, or a
100
- # Tempfile for larger ones. This object also has the additional singleton
101
- # methods:
102
- #
103
- # #local_path():: the path of the uploaded file on the local filesystem
104
- # #original_filename():: the name of the file on the client computer
105
- # #content_type():: the content type of the file
106
- #
107
- # == Responses
108
- #
109
- # The CGI class provides methods for sending header and content output to
110
- # the HTTP client, and mixes in methods for programmatic HTML generation
111
- # from CGI::HtmlExtension and CGI::TagMaker modules. The precise version of HTML
112
- # to use for HTML generation is specified at object creation time.
113
- #
114
- # === Writing output
115
- #
116
- # The simplest way to send output to the HTTP client is using the #out() method.
117
- # This takes the HTTP headers as a hash parameter, and the body content
118
- # via a block. The headers can be generated as a string using the #http_header()
119
- # method. The output stream can be written directly to using the #print()
120
- # method.
121
- #
122
- # === Generating HTML
123
- #
124
- # Each HTML element has a corresponding method for generating that
125
- # element as a String. The name of this method is the same as that
126
- # of the element, all lowercase. The attributes of the element are
127
- # passed in as a hash, and the body as a no-argument block that evaluates
128
- # to a String. The HTML generation module knows which elements are
129
- # always empty, and silently drops any passed-in body. It also knows
130
- # which elements require matching closing tags and which don't. However,
131
- # it does not know what attributes are legal for which elements.
132
- #
133
- # There are also some additional HTML generation methods mixed in from
134
- # the CGI::HtmlExtension module. These include individual methods for the
135
- # different types of form inputs, and methods for elements that commonly
136
- # take particular attributes where the attributes can be directly specified
137
- # as arguments, rather than via a hash.
138
- #
139
- # === Utility HTML escape and other methods like a function.
140
- #
141
- # There are some utility tools defined in cgi/util.rb and cgi/escape.rb.
142
- # Escape and unescape methods are defined in cgi/escape.rb.
143
- # And when include, you can use utility methods like a function.
144
- #
145
- # == Examples of use
146
- #
147
- # === Get form values
148
- #
149
- # require "cgi"
150
- # cgi = CGI.new
151
- # value = cgi['field_name'] # <== value string for 'field_name'
152
- # # if not 'field_name' included, then return "".
153
- # fields = cgi.keys # <== array of field names
154
- #
155
- # # returns true if form has 'field_name'
156
- # cgi.has_key?('field_name')
157
- # cgi.has_key?('field_name')
158
- # cgi.include?('field_name')
159
- #
160
- # CAUTION! <code>cgi['field_name']</code> returned an Array with the old
161
- # cgi.rb(included in Ruby 1.6)
162
- #
163
- # === Get form values as hash
164
- #
165
- # require "cgi"
166
- # cgi = CGI.new
167
- # params = cgi.params
168
- #
169
- # cgi.params is a hash.
170
- #
171
- # cgi.params['new_field_name'] = ["value"] # add new param
172
- # cgi.params['field_name'] = ["new_value"] # change value
173
- # cgi.params.delete('field_name') # delete param
174
- # cgi.params.clear # delete all params
175
- #
176
- #
177
- # === Save form values to file
178
- #
179
- # require "pstore"
180
- # db = PStore.new("query.db")
181
- # db.transaction do
182
- # db["params"] = cgi.params
183
- # end
184
- #
185
- #
186
- # === Restore form values from file
187
- #
188
- # require "pstore"
189
- # db = PStore.new("query.db")
190
- # db.transaction do
191
- # cgi.params = db["params"]
192
- # end
193
- #
194
- #
195
- # === Get multipart form values
196
- #
197
- # require "cgi"
198
- # cgi = CGI.new
199
- # value = cgi['field_name'] # <== value string for 'field_name'
200
- # value.read # <== body of value
201
- # value.local_path # <== path to local file of value
202
- # value.original_filename # <== original filename of value
203
- # value.content_type # <== content_type of value
204
- #
205
- # and value has StringIO or Tempfile class methods.
206
- #
207
- # === Get cookie values
208
- #
209
- # require "cgi"
210
- # cgi = CGI.new
211
- # values = cgi.cookies['name'] # <== array of 'name'
212
- # # if not 'name' included, then return [].
213
- # names = cgi.cookies.keys # <== array of cookie names
214
- #
215
- # and cgi.cookies is a hash.
216
- #
217
- # === Get cookie objects
218
- #
219
- # require "cgi"
220
- # cgi = CGI.new
221
- # for name, cookie in cgi.cookies
222
- # cookie.expires = Time.now + 30
223
- # end
224
- # cgi.out("cookie" => cgi.cookies) {"string"}
225
- #
226
- # cgi.cookies # { "name1" => cookie1, "name2" => cookie2, ... }
227
- #
228
- # require "cgi"
229
- # cgi = CGI.new
230
- # cgi.cookies['name'].expires = Time.now + 30
231
- # cgi.out("cookie" => cgi.cookies['name']) {"string"}
232
- #
233
- # === Print http header and html string to $DEFAULT_OUTPUT ($>)
234
- #
235
- # require "cgi"
236
- # cgi = CGI.new("html4") # add HTML generation methods
237
- # cgi.out do
238
- # cgi.html do
239
- # cgi.head do
240
- # cgi.title { "TITLE" }
241
- # end +
242
- # cgi.body do
243
- # cgi.form("ACTION" => "uri") do
244
- # cgi.p do
245
- # cgi.textarea("get_text") +
246
- # cgi.br +
247
- # cgi.submit
248
- # end
249
- # end +
250
- # cgi.pre do
251
- # CGI.escapeHTML(
252
- # "params: #{cgi.params.inspect}\n" +
253
- # "cookies: #{cgi.cookies.inspect}\n" +
254
- # ENV.collect do |key, value|
255
- # "#{key} --> #{value}\n"
256
- # end.join("")
257
- # )
258
- # end
259
- # end
260
- # end
261
- # end
262
- #
263
- # # add HTML generation methods
264
- # CGI.new("html3") # html3.2
265
- # CGI.new("html4") # html4.01 (Strict)
266
- # CGI.new("html4Tr") # html4.01 Transitional
267
- # CGI.new("html4Fr") # html4.01 Frameset
268
- # CGI.new("html5") # html5
269
- #
270
- # === Some utility methods
271
- #
272
- # require 'cgi/escape'
273
- # CGI.escapeHTML('Usage: foo "bar" <baz>')
274
- #
275
- #
276
- # === Some utility methods like a function
277
- #
278
- # require 'cgi/escape'
279
- # include CGI::Escape
280
- # escapeHTML('Usage: foo "bar" <baz>')
281
- # h('Usage: foo "bar" <baz>') # alias
282
- #
283
- # source://cgi//lib/cgi/util.rb#2
284
- class CGI
285
- include ::CGI::Util
286
- include ::CGI::Escape
287
- include ::CGI::EscapeExt
288
- extend ::CGI::Util
289
- extend ::CGI::Escape
290
- extend ::CGI::EscapeExt
291
-
292
- # Create a new CGI instance.
293
- #
294
- # :call-seq:
295
- # CGI.new(tag_maker) { block }
296
- # CGI.new(options_hash = {}) { block }
297
- #
298
- #
299
- # <tt>tag_maker</tt>::
300
- # This is the same as using the +options_hash+ form with the value <tt>{
301
- # :tag_maker => tag_maker }</tt> Note that it is recommended to use the
302
- # +options_hash+ form, since it also allows you specify the charset you
303
- # will accept.
304
- # <tt>options_hash</tt>::
305
- # A Hash that recognizes three options:
306
- #
307
- # <tt>:accept_charset</tt>::
308
- # specifies encoding of received query string. If omitted,
309
- # <tt>@@accept_charset</tt> is used. If the encoding is not valid, a
310
- # CGI::InvalidEncoding will be raised.
311
- #
312
- # Example. Suppose <tt>@@accept_charset</tt> is "UTF-8"
313
- #
314
- # when not specified:
315
- #
316
- # cgi=CGI.new # @accept_charset # => "UTF-8"
317
- #
318
- # when specified as "EUC-JP":
319
- #
320
- # cgi=CGI.new(:accept_charset => "EUC-JP") # => "EUC-JP"
321
- #
322
- # <tt>:tag_maker</tt>::
323
- # String that specifies which version of the HTML generation methods to
324
- # use. If not specified, no HTML generation methods will be loaded.
325
- #
326
- # The following values are supported:
327
- #
328
- # "html3":: HTML 3.x
329
- # "html4":: HTML 4.0
330
- # "html4Tr":: HTML 4.0 Transitional
331
- # "html4Fr":: HTML 4.0 with Framesets
332
- # "html5":: HTML 5
333
- #
334
- # <tt>:max_multipart_length</tt>::
335
- # Specifies maximum length of multipart data. Can be an Integer scalar or
336
- # a lambda, that will be evaluated when the request is parsed. This
337
- # allows more complex logic to be set when determining whether to accept
338
- # multipart data (e.g. consult a registered users upload allowance)
339
- #
340
- # Default is 128 * 1024 * 1024 bytes
341
- #
342
- # cgi=CGI.new(:max_multipart_length => 268435456) # simple scalar
343
- #
344
- # cgi=CGI.new(:max_multipart_length => -> {check_filesystem}) # lambda
345
- #
346
- # <tt>block</tt>::
347
- # If provided, the block is called when an invalid encoding is
348
- # encountered. For example:
349
- #
350
- # encoding_errors={}
351
- # cgi=CGI.new(:accept_charset=>"EUC-JP") do |name,value|
352
- # encoding_errors[name] = value
353
- # end
354
- #
355
- # Finally, if the CGI object is not created in a standard CGI call
356
- # environment (that is, it can't locate REQUEST_METHOD in its environment),
357
- # then it will run in "offline" mode. In this mode, it reads its parameters
358
- # from the command line or (failing that) from standard input. Otherwise,
359
- # cookies and other parameters are parsed automatically from the standard
360
- # CGI locations, which varies according to the REQUEST_METHOD.
361
- #
362
- # @return [CGI] a new instance of CGI
363
- #
364
- # source://cgi//lib/cgi/core.rb#850
365
- def initialize(options = T.unsafe(nil), &block); end
366
-
367
- # Return the accept character set for this CGI instance.
368
- #
369
- # source://cgi//lib/cgi/core.rb#769
370
- def accept_charset; end
371
-
372
- # Create an HTTP header block as a string.
373
- #
374
- # :call-seq:
375
- # http_header(content_type_string="text/html")
376
- # http_header(headers_hash)
377
- #
378
- # Includes the empty line that ends the header block.
379
- #
380
- # +content_type_string+::
381
- # If this form is used, this string is the <tt>Content-Type</tt>
382
- # +headers_hash+::
383
- # A Hash of header values. The following header keys are recognized:
384
- #
385
- # type:: The Content-Type header. Defaults to "text/html"
386
- # charset:: The charset of the body, appended to the Content-Type header.
387
- # nph:: A boolean value. If true, prepend protocol string and status
388
- # code, and date; and sets default values for "server" and
389
- # "connection" if not explicitly set.
390
- # status::
391
- # The HTTP status code as a String, returned as the Status header. The
392
- # values are:
393
- #
394
- # OK:: 200 OK
395
- # PARTIAL_CONTENT:: 206 Partial Content
396
- # MULTIPLE_CHOICES:: 300 Multiple Choices
397
- # MOVED:: 301 Moved Permanently
398
- # REDIRECT:: 302 Found
399
- # NOT_MODIFIED:: 304 Not Modified
400
- # BAD_REQUEST:: 400 Bad Request
401
- # AUTH_REQUIRED:: 401 Authorization Required
402
- # FORBIDDEN:: 403 Forbidden
403
- # NOT_FOUND:: 404 Not Found
404
- # METHOD_NOT_ALLOWED:: 405 Method Not Allowed
405
- # NOT_ACCEPTABLE:: 406 Not Acceptable
406
- # LENGTH_REQUIRED:: 411 Length Required
407
- # PRECONDITION_FAILED:: 412 Precondition Failed
408
- # SERVER_ERROR:: 500 Internal Server Error
409
- # NOT_IMPLEMENTED:: 501 Method Not Implemented
410
- # BAD_GATEWAY:: 502 Bad Gateway
411
- # VARIANT_ALSO_VARIES:: 506 Variant Also Negotiates
412
- #
413
- # server:: The server software, returned as the Server header.
414
- # connection:: The connection type, returned as the Connection header (for
415
- # instance, "close".
416
- # length:: The length of the content that will be sent, returned as the
417
- # Content-Length header.
418
- # language:: The language of the content, returned as the Content-Language
419
- # header.
420
- # expires:: The time on which the current content expires, as a +Time+
421
- # object, returned as the Expires header.
422
- # cookie::
423
- # A cookie or cookies, returned as one or more Set-Cookie headers. The
424
- # value can be the literal string of the cookie; a CGI::Cookie object;
425
- # an Array of literal cookie strings or Cookie objects; or a hash all of
426
- # whose values are literal cookie strings or Cookie objects.
427
- #
428
- # These cookies are in addition to the cookies held in the
429
- # @output_cookies field.
430
- #
431
- # Other headers can also be set; they are appended as key: value.
432
- #
433
- # Examples:
434
- #
435
- # http_header
436
- # # Content-Type: text/html
437
- #
438
- # http_header("text/plain")
439
- # # Content-Type: text/plain
440
- #
441
- # http_header("nph" => true,
442
- # "status" => "OK", # == "200 OK"
443
- # # "status" => "200 GOOD",
444
- # "server" => ENV['SERVER_SOFTWARE'],
445
- # "connection" => "close",
446
- # "type" => "text/html",
447
- # "charset" => "iso-2022-jp",
448
- # # Content-Type: text/html; charset=iso-2022-jp
449
- # "length" => 103,
450
- # "language" => "ja",
451
- # "expires" => Time.now + 30,
452
- # "cookie" => [cookie1, cookie2],
453
- # "my_header1" => "my_value",
454
- # "my_header2" => "my_value")
455
- #
456
- # This method does not perform charset conversion.
457
- # This method is an alias for #http_header, when HTML5 tag maker is inactive.
458
- #
459
- # NOTE: use #http_header to create HTTP header blocks, this alias is only
460
- # provided for backwards compatibility.
461
- #
462
- # Using #header with the HTML5 tag maker will create a <header> element.
463
- #
464
- # source://cgi//lib/cgi/core.rb#160
465
- def header(options = T.unsafe(nil)); end
466
-
467
- # Create an HTTP header block as a string.
468
- #
469
- # :call-seq:
470
- # http_header(content_type_string="text/html")
471
- # http_header(headers_hash)
472
- #
473
- # Includes the empty line that ends the header block.
474
- #
475
- # +content_type_string+::
476
- # If this form is used, this string is the <tt>Content-Type</tt>
477
- # +headers_hash+::
478
- # A Hash of header values. The following header keys are recognized:
479
- #
480
- # type:: The Content-Type header. Defaults to "text/html"
481
- # charset:: The charset of the body, appended to the Content-Type header.
482
- # nph:: A boolean value. If true, prepend protocol string and status
483
- # code, and date; and sets default values for "server" and
484
- # "connection" if not explicitly set.
485
- # status::
486
- # The HTTP status code as a String, returned as the Status header. The
487
- # values are:
488
- #
489
- # OK:: 200 OK
490
- # PARTIAL_CONTENT:: 206 Partial Content
491
- # MULTIPLE_CHOICES:: 300 Multiple Choices
492
- # MOVED:: 301 Moved Permanently
493
- # REDIRECT:: 302 Found
494
- # NOT_MODIFIED:: 304 Not Modified
495
- # BAD_REQUEST:: 400 Bad Request
496
- # AUTH_REQUIRED:: 401 Authorization Required
497
- # FORBIDDEN:: 403 Forbidden
498
- # NOT_FOUND:: 404 Not Found
499
- # METHOD_NOT_ALLOWED:: 405 Method Not Allowed
500
- # NOT_ACCEPTABLE:: 406 Not Acceptable
501
- # LENGTH_REQUIRED:: 411 Length Required
502
- # PRECONDITION_FAILED:: 412 Precondition Failed
503
- # SERVER_ERROR:: 500 Internal Server Error
504
- # NOT_IMPLEMENTED:: 501 Method Not Implemented
505
- # BAD_GATEWAY:: 502 Bad Gateway
506
- # VARIANT_ALSO_VARIES:: 506 Variant Also Negotiates
507
- #
508
- # server:: The server software, returned as the Server header.
509
- # connection:: The connection type, returned as the Connection header (for
510
- # instance, "close".
511
- # length:: The length of the content that will be sent, returned as the
512
- # Content-Length header.
513
- # language:: The language of the content, returned as the Content-Language
514
- # header.
515
- # expires:: The time on which the current content expires, as a +Time+
516
- # object, returned as the Expires header.
517
- # cookie::
518
- # A cookie or cookies, returned as one or more Set-Cookie headers. The
519
- # value can be the literal string of the cookie; a CGI::Cookie object;
520
- # an Array of literal cookie strings or Cookie objects; or a hash all of
521
- # whose values are literal cookie strings or Cookie objects.
522
- #
523
- # These cookies are in addition to the cookies held in the
524
- # @output_cookies field.
525
- #
526
- # Other headers can also be set; they are appended as key: value.
527
- #
528
- # Examples:
529
- #
530
- # http_header
531
- # # Content-Type: text/html
532
- #
533
- # http_header("text/plain")
534
- # # Content-Type: text/plain
535
- #
536
- # http_header("nph" => true,
537
- # "status" => "OK", # == "200 OK"
538
- # # "status" => "200 GOOD",
539
- # "server" => ENV['SERVER_SOFTWARE'],
540
- # "connection" => "close",
541
- # "type" => "text/html",
542
- # "charset" => "iso-2022-jp",
543
- # # Content-Type: text/html; charset=iso-2022-jp
544
- # "length" => 103,
545
- # "language" => "ja",
546
- # "expires" => Time.now + 30,
547
- # "cookie" => [cookie1, cookie2],
548
- # "my_header1" => "my_value",
549
- # "my_header2" => "my_value")
550
- #
551
- # This method does not perform charset conversion.
552
- #
553
- # source://cgi//lib/cgi/core.rb#160
554
- def http_header(options = T.unsafe(nil)); end
555
-
556
- # @return [Boolean]
557
- #
558
- # source://cgi//lib/cgi/core.rb#274
559
- def nph?; end
560
-
561
- # Print an HTTP header and body to $DEFAULT_OUTPUT ($>)
562
- #
563
- # :call-seq:
564
- # cgi.out(content_type_string='text/html')
565
- # cgi.out(headers_hash)
566
- #
567
- # +content_type_string+::
568
- # If a string is passed, it is assumed to be the content type.
569
- # +headers_hash+::
570
- # This is a Hash of headers, similar to that used by #http_header.
571
- # +block+::
572
- # A block is required and should evaluate to the body of the response.
573
- #
574
- # <tt>Content-Length</tt> is automatically calculated from the size of
575
- # the String returned by the content block.
576
- #
577
- # If <tt>ENV['REQUEST_METHOD'] == "HEAD"</tt>, then only the header
578
- # is output (the content block is still required, but it is ignored).
579
- #
580
- # If the charset is "iso-2022-jp" or "euc-jp" or "shift_jis" then the
581
- # content is converted to this charset, and the language is set to "ja".
582
- #
583
- # Example:
584
- #
585
- # cgi = CGI.new
586
- # cgi.out{ "string" }
587
- # # Content-Type: text/html
588
- # # Content-Length: 6
589
- # #
590
- # # string
591
- #
592
- # cgi.out("text/plain") { "string" }
593
- # # Content-Type: text/plain
594
- # # Content-Length: 6
595
- # #
596
- # # string
597
- #
598
- # cgi.out("nph" => true,
599
- # "status" => "OK", # == "200 OK"
600
- # "server" => ENV['SERVER_SOFTWARE'],
601
- # "connection" => "close",
602
- # "type" => "text/html",
603
- # "charset" => "iso-2022-jp",
604
- # # Content-Type: text/html; charset=iso-2022-jp
605
- # "language" => "ja",
606
- # "expires" => Time.now + (3600 * 24 * 30),
607
- # "cookie" => [cookie1, cookie2],
608
- # "my_header1" => "my_value",
609
- # "my_header2" => "my_value") { "string" }
610
- # # HTTP/1.1 200 OK
611
- # # Date: Sun, 15 May 2011 17:35:54 GMT
612
- # # Server: Apache 2.2.0
613
- # # Connection: close
614
- # # Content-Type: text/html; charset=iso-2022-jp
615
- # # Content-Length: 6
616
- # # Content-Language: ja
617
- # # Expires: Tue, 14 Jun 2011 17:35:54 GMT
618
- # # Set-Cookie: foo
619
- # # Set-Cookie: bar
620
- # # my_header1: my_value
621
- # # my_header2: my_value
622
- # #
623
- # # string
624
- #
625
- # source://cgi//lib/cgi/core.rb#367
626
- def out(options = T.unsafe(nil)); end
627
-
628
- # Print an argument or list of arguments to the default output stream
629
- #
630
- # cgi = CGI.new
631
- # cgi.print # default: cgi.print == $DEFAULT_OUTPUT.print
632
- #
633
- # source://cgi//lib/cgi/core.rb#383
634
- def print(*options); end
635
-
636
- private
637
-
638
- # source://cgi//lib/cgi/core.rb#218
639
- def _header_for_hash(options); end
640
-
641
- # source://cgi//lib/cgi/core.rb#278
642
- def _header_for_modruby(buf); end
643
-
644
- # source://cgi//lib/cgi/core.rb#202
645
- def _header_for_string(content_type); end
646
-
647
- # source://cgi//lib/cgi/core.rb#191
648
- def _no_crlf_check(str); end
649
-
650
- # Synonym for ENV.
651
- #
652
- # source://cgi//lib/cgi/core.rb#59
653
- def env_table; end
654
-
655
- # Synonym for $stdin.
656
- #
657
- # source://cgi//lib/cgi/core.rb#64
658
- def stdinput; end
659
-
660
- # Synonym for $stdout.
661
- #
662
- # source://cgi//lib/cgi/core.rb#69
663
- def stdoutput; end
664
-
665
- class << self
666
- # Return the accept character set for all new CGI instances.
667
- #
668
- # source://cgi//lib/cgi/core.rb#759
669
- def accept_charset; end
670
-
671
- # Set the accept character set for all new CGI instances.
672
- #
673
- # source://cgi//lib/cgi/core.rb#764
674
- def accept_charset=(accept_charset); end
675
-
676
- # Parse an HTTP query string into a hash of key=>value pairs.
677
- #
678
- # params = CGI.parse("query_string")
679
- # # {"name1" => ["value1", "value2", ...],
680
- # # "name2" => ["value1", "value2", ...], ... }
681
- #
682
- # source://cgi//lib/cgi/core.rb#393
683
- def parse(query); end
684
- end
685
- end
686
-
687
- # Class representing an HTTP cookie.
688
- #
689
- # In addition to its specific fields and methods, a Cookie instance
690
- # is a delegator to the array of its values.
691
- #
692
- # See RFC 2965.
693
- #
694
- # == Examples of use
695
- # cookie1 = CGI::Cookie.new("name", "value1", "value2", ...)
696
- # cookie1 = CGI::Cookie.new("name" => "name", "value" => "value")
697
- # cookie1 = CGI::Cookie.new('name' => 'name',
698
- # 'value' => ['value1', 'value2', ...],
699
- # 'path' => 'path', # optional
700
- # 'domain' => 'domain', # optional
701
- # 'expires' => Time.now, # optional
702
- # 'secure' => true, # optional
703
- # 'httponly' => true # optional
704
- # )
705
- #
706
- # cgi.out("cookie" => [cookie1, cookie2]) { "string" }
707
- #
708
- # name = cookie1.name
709
- # values = cookie1.value
710
- # path = cookie1.path
711
- # domain = cookie1.domain
712
- # expires = cookie1.expires
713
- # secure = cookie1.secure
714
- # httponly = cookie1.httponly
715
- #
716
- # cookie1.name = 'name'
717
- # cookie1.value = ['value1', 'value2', ...]
718
- # cookie1.path = 'path'
719
- # cookie1.domain = 'domain'
720
- # cookie1.expires = Time.now + 30
721
- # cookie1.secure = true
722
- # cookie1.httponly = true
723
- #
724
- # source://cgi//lib/cgi/cookie.rb#40
725
- class CGI::Cookie < ::Array
726
- # Create a new CGI::Cookie object.
727
- #
728
- # :call-seq:
729
- # Cookie.new(name_string,*value)
730
- # Cookie.new(options_hash)
731
- #
732
- # +name_string+::
733
- # The name of the cookie; in this form, there is no #domain or
734
- # #expiration. The #path is gleaned from the +SCRIPT_NAME+ environment
735
- # variable, and #secure is false.
736
- # <tt>*value</tt>::
737
- # value or list of values of the cookie
738
- # +options_hash+::
739
- # A Hash of options to initialize this Cookie. Possible options are:
740
- #
741
- # name:: the name of the cookie. Required.
742
- # value:: the cookie's value or list of values.
743
- # path:: the path for which this cookie applies. Defaults to
744
- # the value of the +SCRIPT_NAME+ environment variable.
745
- # domain:: the domain for which this cookie applies.
746
- # expires:: the time at which this cookie expires, as a +Time+ object.
747
- # secure:: whether this cookie is a secure cookie or not (default to
748
- # false). Secure cookies are only transmitted to HTTPS
749
- # servers.
750
- # httponly:: whether this cookie is a HttpOnly cookie or not (default to
751
- # false). HttpOnly cookies are not available to javascript.
752
- #
753
- # These keywords correspond to attributes of the cookie object.
754
- #
755
- # @return [Cookie] a new instance of Cookie
756
- #
757
- # source://cgi//lib/cgi/cookie.rb#75
758
- def initialize(name = T.unsafe(nil), *value); end
759
-
760
- # Domain for which this cookie applies, as a +String+
761
- #
762
- # source://cgi//lib/cgi/cookie.rb#124
763
- def domain; end
764
-
765
- # Set domain for which this cookie applies
766
- #
767
- # source://cgi//lib/cgi/cookie.rb#126
768
- def domain=(str); end
769
-
770
- # Time at which this cookie expires, as a +Time+
771
- #
772
- # source://cgi//lib/cgi/cookie.rb#134
773
- def expires; end
774
-
775
- # Time at which this cookie expires, as a +Time+
776
- #
777
- # source://cgi//lib/cgi/cookie.rb#134
778
- def expires=(_arg0); end
779
-
780
- # True if this cookie is httponly; false otherwise
781
- #
782
- # source://cgi//lib/cgi/cookie.rb#138
783
- def httponly; end
784
-
785
- # Set whether the Cookie is a httponly cookie or not.
786
- #
787
- # +val+ must be a boolean.
788
- #
789
- # source://cgi//lib/cgi/cookie.rb#161
790
- def httponly=(val); end
791
-
792
- # A summary of cookie string.
793
- #
794
- # source://cgi//lib/cgi/cookie.rb#203
795
- def inspect; end
796
-
797
- # Name of this cookie, as a +String+
798
- #
799
- # source://cgi//lib/cgi/cookie.rb#104
800
- def name; end
801
-
802
- # Set name of this cookie
803
- #
804
- # source://cgi//lib/cgi/cookie.rb#106
805
- def name=(str); end
806
-
807
- # Path for which this cookie applies, as a +String+
808
- #
809
- # source://cgi//lib/cgi/cookie.rb#114
810
- def path; end
811
-
812
- # Set path for which this cookie applies
813
- #
814
- # source://cgi//lib/cgi/cookie.rb#116
815
- def path=(str); end
816
-
817
- # True if this cookie is secure; false otherwise
818
- #
819
- # source://cgi//lib/cgi/cookie.rb#136
820
- def secure; end
821
-
822
- # Set whether the Cookie is a secure cookie or not.
823
- #
824
- # +val+ must be a boolean.
825
- #
826
- # source://cgi//lib/cgi/cookie.rb#153
827
- def secure=(val); end
828
-
829
- # Convert the Cookie to its string representation.
830
- #
831
- # source://cgi//lib/cgi/cookie.rb#166
832
- def to_s; end
833
-
834
- # Returns the value or list of values for this cookie.
835
- #
836
- # source://cgi//lib/cgi/cookie.rb#141
837
- def value; end
838
-
839
- # Replaces the value of this cookie with a new value or list of values.
840
- #
841
- # source://cgi//lib/cgi/cookie.rb#146
842
- def value=(val); end
843
-
844
- class << self
845
- # Parse a raw cookie string into a hash of cookie-name=>Cookie
846
- # pairs.
847
- #
848
- # cookies = CGI::Cookie.parse("raw_cookie_string")
849
- # # { "name1" => cookie1, "name2" => cookie2, ... }
850
- #
851
- # source://cgi//lib/cgi/cookie.rb#183
852
- def parse(raw_cookie); end
853
- end
854
- end
855
-
856
- # source://cgi//lib/cgi/cookie.rb#45
857
- CGI::Cookie::DOMAIN_VALUE_RE = T.let(T.unsafe(nil), Regexp)
858
-
859
- # source://cgi//lib/cgi/cookie.rb#44
860
- CGI::Cookie::PATH_VALUE_RE = T.let(T.unsafe(nil), Regexp)
861
-
862
- # source://cgi//lib/cgi/cookie.rb#43
863
- CGI::Cookie::TOKEN_RE = T.let(T.unsafe(nil), Regexp)
864
-
865
- # source://cgi//lib/cgi/escape.rb#4
866
- module CGI::Escape
867
- include ::CGI::EscapeExt
868
-
869
- # Escape only the tags of certain HTML elements in +string+.
870
- #
871
- # Takes an element or elements or array of elements. Each element
872
- # is specified by the name of the element, without angle brackets.
873
- # This matches both the start and the end tag of that element.
874
- # The attribute list of the open tag will also be escaped (for
875
- # instance, the double-quotes surrounding attribute values).
876
- #
877
- # print CGI.escapeElement('<BR><A HREF="url"></A>', "A", "IMG")
878
- # # "<BR>&lt;A HREF=&quot;url&quot;&gt;&lt;/A&gt"
879
- #
880
- # print CGI.escapeElement('<BR><A HREF="url"></A>', ["A", "IMG"])
881
- # # "<BR>&lt;A HREF=&quot;url&quot;&gt;&lt;/A&gt"
882
- #
883
- # source://cgi//lib/cgi/escape.rb#187
884
- def escapeElement(string, *elements); end
885
-
886
- # Escape only the tags of certain HTML elements in +string+.
887
- #
888
- # Takes an element or elements or array of elements. Each element
889
- # is specified by the name of the element, without angle brackets.
890
- # This matches both the start and the end tag of that element.
891
- # The attribute list of the open tag will also be escaped (for
892
- # instance, the double-quotes surrounding attribute values).
893
- #
894
- # print CGI.escapeElement('<BR><A HREF="url"></A>', "A", "IMG")
895
- # # "<BR>&lt;A HREF=&quot;url&quot;&gt;&lt;/A&gt"
896
- #
897
- # print CGI.escapeElement('<BR><A HREF="url"></A>', ["A", "IMG"])
898
- # # "<BR>&lt;A HREF=&quot;url&quot;&gt;&lt;/A&gt"
899
- # Synonym for CGI.escapeElement(str)
900
- #
901
- # source://cgi//lib/cgi/escape.rb#187
902
- def escape_element(string, *elements); end
903
-
904
- # Escape special characters in HTML, namely '&\"<>
905
- # CGI.escapeHTML('Usage: foo "bar" <baz>')
906
- # # => "Usage: foo &quot;bar&quot; &lt;baz&gt;"
907
- # Synonym for CGI.escapeHTML(str)
908
- #
909
- # source://cgi//lib/cgi/escape.rb#79
910
- def escape_html(string); end
911
-
912
- # Escape special characters in HTML, namely '&\"<>
913
- # CGI.escapeHTML('Usage: foo "bar" <baz>')
914
- # # => "Usage: foo &quot;bar&quot; &lt;baz&gt;"
915
- #
916
- # source://cgi//lib/cgi/escape.rb#79
917
- def h(string); end
918
-
919
- # Undo escaping such as that done by CGI.escapeElement()
920
- #
921
- # print CGI.unescapeElement(
922
- # CGI.escapeHTML('<BR><A HREF="url"></A>'), "A", "IMG")
923
- # # "&lt;BR&gt;<A HREF="url"></A>"
924
- #
925
- # print CGI.unescapeElement(
926
- # CGI.escapeHTML('<BR><A HREF="url"></A>'), ["A", "IMG"])
927
- # # "&lt;BR&gt;<A HREF="url"></A>"
928
- #
929
- # source://cgi//lib/cgi/escape.rb#207
930
- def unescapeElement(string, *elements); end
931
-
932
- # Undo escaping such as that done by CGI.escapeElement()
933
- #
934
- # print CGI.unescapeElement(
935
- # CGI.escapeHTML('<BR><A HREF="url"></A>'), "A", "IMG")
936
- # # "&lt;BR&gt;<A HREF="url"></A>"
937
- #
938
- # print CGI.unescapeElement(
939
- # CGI.escapeHTML('<BR><A HREF="url"></A>'), ["A", "IMG"])
940
- # # "&lt;BR&gt;<A HREF="url"></A>"
941
- # Synonym for CGI.unescapeElement(str)
942
- #
943
- # source://cgi//lib/cgi/escape.rb#207
944
- def unescape_element(string, *elements); end
945
-
946
- # Unescape a string that has been HTML-escaped
947
- # CGI.unescapeHTML("Usage: foo &quot;bar&quot; &lt;baz&gt;")
948
- # # => "Usage: foo \"bar\" <baz>"
949
- # Synonym for CGI.unescapeHTML(str)
950
- #
951
- # source://cgi//lib/cgi/escape.rb#101
952
- def unescape_html(string); end
953
- end
954
-
955
- # The set of special characters and their escaped values
956
- #
957
- # source://cgi//lib/cgi/escape.rb#68
958
- CGI::Escape::TABLE_FOR_ESCAPE_HTML__ = T.let(T.unsafe(nil), Hash)
959
-
960
- module CGI::EscapeExt
961
- def escape(_arg0); end
962
- def escapeHTML(_arg0); end
963
- def escapeURIComponent(_arg0); end
964
- def escape_uri_component(_arg0); end
965
- def unescape(*_arg0); end
966
- def unescapeHTML(_arg0); end
967
- def unescapeURIComponent(*_arg0); end
968
- def unescape_uri_component(*_arg0); end
969
- end
970
-
971
- # Html5
972
- #
973
- # source://cgi//lib/cgi/html.rb#1009
974
- class CGI::HTML3
975
- include ::CGI::TagMaker
976
- include ::CGI::Html3
977
- include ::CGI::HtmlExtension
978
- end
979
-
980
- # source://cgi//lib/cgi/html.rb#1014
981
- class CGI::HTML4
982
- include ::CGI::TagMaker
983
- include ::CGI::Html4
984
- include ::CGI::HtmlExtension
985
- end
986
-
987
- # source://cgi//lib/cgi/html.rb#1024
988
- class CGI::HTML4Fr
989
- include ::CGI::TagMaker
990
- include ::CGI::Html4Tr
991
- include ::CGI::Html4Fr
992
- include ::CGI::HtmlExtension
993
- end
994
-
995
- # source://cgi//lib/cgi/html.rb#1019
996
- class CGI::HTML4Tr
997
- include ::CGI::TagMaker
998
- include ::CGI::Html4Tr
999
- include ::CGI::HtmlExtension
1000
- end
1001
-
1002
- # source://cgi//lib/cgi/html.rb#1030
1003
- class CGI::HTML5
1004
- include ::CGI::TagMaker
1005
- include ::CGI::Html5
1006
- include ::CGI::HtmlExtension
1007
- end
1008
-
1009
- # Mixin module for HTML version 3 generation methods.
1010
- #
1011
- # source://cgi//lib/cgi/html.rb#822
1012
- module CGI::Html3
1013
- include ::CGI::TagMaker
1014
-
1015
- # source://cgi//lib/cgi/html.rb#20
1016
- def a(attributes = T.unsafe(nil), &block); end
1017
-
1018
- # source://cgi//lib/cgi/html.rb#20
1019
- def address(attributes = T.unsafe(nil), &block); end
1020
-
1021
- # source://cgi//lib/cgi/html.rb#20
1022
- def applet(attributes = T.unsafe(nil), &block); end
1023
-
1024
- # source://cgi//lib/cgi/html.rb#43
1025
- def area(attributes = T.unsafe(nil), &block); end
1026
-
1027
- # source://cgi//lib/cgi/html.rb#20
1028
- def b(attributes = T.unsafe(nil), &block); end
1029
-
1030
- # source://cgi//lib/cgi/html.rb#43
1031
- def base(attributes = T.unsafe(nil), &block); end
1032
-
1033
- # source://cgi//lib/cgi/html.rb#43
1034
- def basefont(attributes = T.unsafe(nil), &block); end
1035
-
1036
- # source://cgi//lib/cgi/html.rb#20
1037
- def big(attributes = T.unsafe(nil), &block); end
1038
-
1039
- # source://cgi//lib/cgi/html.rb#20
1040
- def blockquote(attributes = T.unsafe(nil), &block); end
1041
-
1042
- # source://cgi//lib/cgi/html.rb#61
1043
- def body(attributes = T.unsafe(nil), &block); end
1044
-
1045
- # source://cgi//lib/cgi/html.rb#43
1046
- def br(attributes = T.unsafe(nil), &block); end
1047
-
1048
- # source://cgi//lib/cgi/html.rb#20
1049
- def caption(attributes = T.unsafe(nil), &block); end
1050
-
1051
- # source://cgi//lib/cgi/html.rb#20
1052
- def center(attributes = T.unsafe(nil), &block); end
1053
-
1054
- # source://cgi//lib/cgi/html.rb#20
1055
- def cite(attributes = T.unsafe(nil), &block); end
1056
-
1057
- # source://cgi//lib/cgi/html.rb#20
1058
- def code(attributes = T.unsafe(nil), &block); end
1059
-
1060
- # source://cgi//lib/cgi/html.rb#61
1061
- def dd(attributes = T.unsafe(nil), &block); end
1062
-
1063
- # source://cgi//lib/cgi/html.rb#20
1064
- def dfn(attributes = T.unsafe(nil), &block); end
1065
-
1066
- # source://cgi//lib/cgi/html.rb#20
1067
- def dir(attributes = T.unsafe(nil), &block); end
1068
-
1069
- # source://cgi//lib/cgi/html.rb#20
1070
- def div(attributes = T.unsafe(nil), &block); end
1071
-
1072
- # source://cgi//lib/cgi/html.rb#20
1073
- def dl(attributes = T.unsafe(nil), &block); end
1074
-
1075
- # The DOCTYPE declaration for this version of HTML
1076
- #
1077
- # source://cgi//lib/cgi/html.rb#826
1078
- def doctype; end
1079
-
1080
- # source://cgi//lib/cgi/html.rb#61
1081
- def dt(attributes = T.unsafe(nil), &block); end
1082
-
1083
- # source://cgi//lib/cgi/html.rb#20
1084
- def em(attributes = T.unsafe(nil), &block); end
1085
-
1086
- # source://cgi//lib/cgi/html.rb#20
1087
- def font(attributes = T.unsafe(nil), &block); end
1088
-
1089
- # source://cgi//lib/cgi/html.rb#20
1090
- def form(attributes = T.unsafe(nil), &block); end
1091
-
1092
- # source://cgi//lib/cgi/html.rb#20
1093
- def h1(attributes = T.unsafe(nil), &block); end
1094
-
1095
- # source://cgi//lib/cgi/html.rb#20
1096
- def h2(attributes = T.unsafe(nil), &block); end
1097
-
1098
- # source://cgi//lib/cgi/html.rb#20
1099
- def h3(attributes = T.unsafe(nil), &block); end
1100
-
1101
- # source://cgi//lib/cgi/html.rb#20
1102
- def h4(attributes = T.unsafe(nil), &block); end
1103
-
1104
- # source://cgi//lib/cgi/html.rb#20
1105
- def h5(attributes = T.unsafe(nil), &block); end
1106
-
1107
- # source://cgi//lib/cgi/html.rb#20
1108
- def h6(attributes = T.unsafe(nil), &block); end
1109
-
1110
- # source://cgi//lib/cgi/html.rb#61
1111
- def head(attributes = T.unsafe(nil), &block); end
1112
-
1113
- # source://cgi//lib/cgi/html.rb#43
1114
- def hr(attributes = T.unsafe(nil), &block); end
1115
-
1116
- # source://cgi//lib/cgi/html.rb#61
1117
- def html(attributes = T.unsafe(nil), &block); end
1118
-
1119
- # source://cgi//lib/cgi/html.rb#20
1120
- def i(attributes = T.unsafe(nil), &block); end
1121
-
1122
- # source://cgi//lib/cgi/html.rb#43
1123
- def img(attributes = T.unsafe(nil), &block); end
1124
-
1125
- # source://cgi//lib/cgi/html.rb#43
1126
- def input(attributes = T.unsafe(nil), &block); end
1127
-
1128
- # source://cgi//lib/cgi/html.rb#43
1129
- def isindex(attributes = T.unsafe(nil), &block); end
1130
-
1131
- # source://cgi//lib/cgi/html.rb#20
1132
- def kbd(attributes = T.unsafe(nil), &block); end
1133
-
1134
- # source://cgi//lib/cgi/html.rb#61
1135
- def li(attributes = T.unsafe(nil), &block); end
1136
-
1137
- # source://cgi//lib/cgi/html.rb#43
1138
- def link(attributes = T.unsafe(nil), &block); end
1139
-
1140
- # source://cgi//lib/cgi/html.rb#20
1141
- def listing(attributes = T.unsafe(nil), &block); end
1142
-
1143
- # source://cgi//lib/cgi/html.rb#20
1144
- def map(attributes = T.unsafe(nil), &block); end
1145
-
1146
- # source://cgi//lib/cgi/html.rb#20
1147
- def menu(attributes = T.unsafe(nil), &block); end
1148
-
1149
- # source://cgi//lib/cgi/html.rb#43
1150
- def meta(attributes = T.unsafe(nil), &block); end
1151
-
1152
- # source://cgi//lib/cgi/html.rb#20
1153
- def ol(attributes = T.unsafe(nil), &block); end
1154
-
1155
- # source://cgi//lib/cgi/html.rb#61
1156
- def option(attributes = T.unsafe(nil), &block); end
1157
-
1158
- # source://cgi//lib/cgi/html.rb#61
1159
- def p(attributes = T.unsafe(nil), &block); end
1160
-
1161
- # source://cgi//lib/cgi/html.rb#43
1162
- def param(attributes = T.unsafe(nil), &block); end
1163
-
1164
- # source://cgi//lib/cgi/html.rb#61
1165
- def plaintext(attributes = T.unsafe(nil), &block); end
1166
-
1167
- # source://cgi//lib/cgi/html.rb#20
1168
- def pre(attributes = T.unsafe(nil), &block); end
1169
-
1170
- # source://cgi//lib/cgi/html.rb#20
1171
- def samp(attributes = T.unsafe(nil), &block); end
1172
-
1173
- # source://cgi//lib/cgi/html.rb#20
1174
- def script(attributes = T.unsafe(nil), &block); end
1175
-
1176
- # source://cgi//lib/cgi/html.rb#20
1177
- def select(attributes = T.unsafe(nil), &block); end
1178
-
1179
- # source://cgi//lib/cgi/html.rb#20
1180
- def small(attributes = T.unsafe(nil), &block); end
1181
-
1182
- # source://cgi//lib/cgi/html.rb#20
1183
- def strike(attributes = T.unsafe(nil), &block); end
1184
-
1185
- # source://cgi//lib/cgi/html.rb#20
1186
- def strong(attributes = T.unsafe(nil), &block); end
1187
-
1188
- # source://cgi//lib/cgi/html.rb#20
1189
- def style(attributes = T.unsafe(nil), &block); end
1190
-
1191
- # source://cgi//lib/cgi/html.rb#20
1192
- def sub(attributes = T.unsafe(nil), &block); end
1193
-
1194
- # source://cgi//lib/cgi/html.rb#20
1195
- def sup(attributes = T.unsafe(nil), &block); end
1196
-
1197
- # source://cgi//lib/cgi/html.rb#20
1198
- def table(attributes = T.unsafe(nil), &block); end
1199
-
1200
- # source://cgi//lib/cgi/html.rb#61
1201
- def td(attributes = T.unsafe(nil), &block); end
1202
-
1203
- # source://cgi//lib/cgi/html.rb#20
1204
- def textarea(attributes = T.unsafe(nil), &block); end
1205
-
1206
- # source://cgi//lib/cgi/html.rb#61
1207
- def th(attributes = T.unsafe(nil), &block); end
1208
-
1209
- # source://cgi//lib/cgi/html.rb#20
1210
- def title(attributes = T.unsafe(nil), &block); end
1211
-
1212
- # source://cgi//lib/cgi/html.rb#61
1213
- def tr(attributes = T.unsafe(nil), &block); end
1214
-
1215
- # source://cgi//lib/cgi/html.rb#20
1216
- def tt(attributes = T.unsafe(nil), &block); end
1217
-
1218
- # source://cgi//lib/cgi/html.rb#20
1219
- def u(attributes = T.unsafe(nil), &block); end
1220
-
1221
- # source://cgi//lib/cgi/html.rb#20
1222
- def ul(attributes = T.unsafe(nil), &block); end
1223
-
1224
- # source://cgi//lib/cgi/html.rb#20
1225
- def var(attributes = T.unsafe(nil), &block); end
1226
-
1227
- # source://cgi//lib/cgi/html.rb#20
1228
- def xmp(attributes = T.unsafe(nil), &block); end
1229
- end
1230
-
1231
- # Mixin module for HTML version 4 generation methods.
1232
- #
1233
- # source://cgi//lib/cgi/html.rb#861
1234
- module CGI::Html4
1235
- include ::CGI::TagMaker
1236
-
1237
- # source://cgi//lib/cgi/html.rb#20
1238
- def a(attributes = T.unsafe(nil), &block); end
1239
-
1240
- # source://cgi//lib/cgi/html.rb#20
1241
- def abbr(attributes = T.unsafe(nil), &block); end
1242
-
1243
- # source://cgi//lib/cgi/html.rb#20
1244
- def acronym(attributes = T.unsafe(nil), &block); end
1245
-
1246
- # source://cgi//lib/cgi/html.rb#20
1247
- def address(attributes = T.unsafe(nil), &block); end
1248
-
1249
- # source://cgi//lib/cgi/html.rb#43
1250
- def area(attributes = T.unsafe(nil), &block); end
1251
-
1252
- # source://cgi//lib/cgi/html.rb#20
1253
- def b(attributes = T.unsafe(nil), &block); end
1254
-
1255
- # source://cgi//lib/cgi/html.rb#43
1256
- def base(attributes = T.unsafe(nil), &block); end
1257
-
1258
- # source://cgi//lib/cgi/html.rb#20
1259
- def bdo(attributes = T.unsafe(nil), &block); end
1260
-
1261
- # source://cgi//lib/cgi/html.rb#20
1262
- def big(attributes = T.unsafe(nil), &block); end
1263
-
1264
- # source://cgi//lib/cgi/html.rb#20
1265
- def blockquote(attributes = T.unsafe(nil), &block); end
1266
-
1267
- # source://cgi//lib/cgi/html.rb#61
1268
- def body(attributes = T.unsafe(nil), &block); end
1269
-
1270
- # source://cgi//lib/cgi/html.rb#43
1271
- def br(attributes = T.unsafe(nil), &block); end
1272
-
1273
- # source://cgi//lib/cgi/html.rb#20
1274
- def button(attributes = T.unsafe(nil), &block); end
1275
-
1276
- # source://cgi//lib/cgi/html.rb#20
1277
- def caption(attributes = T.unsafe(nil), &block); end
1278
-
1279
- # source://cgi//lib/cgi/html.rb#20
1280
- def cite(attributes = T.unsafe(nil), &block); end
1281
-
1282
- # source://cgi//lib/cgi/html.rb#20
1283
- def code(attributes = T.unsafe(nil), &block); end
1284
-
1285
- # source://cgi//lib/cgi/html.rb#43
1286
- def col(attributes = T.unsafe(nil), &block); end
1287
-
1288
- # source://cgi//lib/cgi/html.rb#61
1289
- def colgroup(attributes = T.unsafe(nil), &block); end
1290
-
1291
- # source://cgi//lib/cgi/html.rb#61
1292
- def dd(attributes = T.unsafe(nil), &block); end
1293
-
1294
- # source://cgi//lib/cgi/html.rb#20
1295
- def del(attributes = T.unsafe(nil), &block); end
1296
-
1297
- # source://cgi//lib/cgi/html.rb#20
1298
- def dfn(attributes = T.unsafe(nil), &block); end
1299
-
1300
- # source://cgi//lib/cgi/html.rb#20
1301
- def div(attributes = T.unsafe(nil), &block); end
1302
-
1303
- # source://cgi//lib/cgi/html.rb#20
1304
- def dl(attributes = T.unsafe(nil), &block); end
1305
-
1306
- # The DOCTYPE declaration for this version of HTML
1307
- #
1308
- # source://cgi//lib/cgi/html.rb#865
1309
- def doctype; end
1310
-
1311
- # source://cgi//lib/cgi/html.rb#61
1312
- def dt(attributes = T.unsafe(nil), &block); end
1313
-
1314
- # source://cgi//lib/cgi/html.rb#20
1315
- def em(attributes = T.unsafe(nil), &block); end
1316
-
1317
- # source://cgi//lib/cgi/html.rb#20
1318
- def fieldset(attributes = T.unsafe(nil), &block); end
1319
-
1320
- # source://cgi//lib/cgi/html.rb#20
1321
- def form(attributes = T.unsafe(nil), &block); end
1322
-
1323
- # source://cgi//lib/cgi/html.rb#20
1324
- def h1(attributes = T.unsafe(nil), &block); end
1325
-
1326
- # source://cgi//lib/cgi/html.rb#20
1327
- def h2(attributes = T.unsafe(nil), &block); end
1328
-
1329
- # source://cgi//lib/cgi/html.rb#20
1330
- def h3(attributes = T.unsafe(nil), &block); end
1331
-
1332
- # source://cgi//lib/cgi/html.rb#20
1333
- def h4(attributes = T.unsafe(nil), &block); end
1334
-
1335
- # source://cgi//lib/cgi/html.rb#20
1336
- def h5(attributes = T.unsafe(nil), &block); end
1337
-
1338
- # source://cgi//lib/cgi/html.rb#20
1339
- def h6(attributes = T.unsafe(nil), &block); end
1340
-
1341
- # source://cgi//lib/cgi/html.rb#61
1342
- def head(attributes = T.unsafe(nil), &block); end
1343
-
1344
- # source://cgi//lib/cgi/html.rb#43
1345
- def hr(attributes = T.unsafe(nil), &block); end
1346
-
1347
- # source://cgi//lib/cgi/html.rb#61
1348
- def html(attributes = T.unsafe(nil), &block); end
1349
-
1350
- # source://cgi//lib/cgi/html.rb#20
1351
- def i(attributes = T.unsafe(nil), &block); end
1352
-
1353
- # source://cgi//lib/cgi/html.rb#43
1354
- def img(attributes = T.unsafe(nil), &block); end
1355
-
1356
- # source://cgi//lib/cgi/html.rb#43
1357
- def input(attributes = T.unsafe(nil), &block); end
1358
-
1359
- # source://cgi//lib/cgi/html.rb#20
1360
- def ins(attributes = T.unsafe(nil), &block); end
1361
-
1362
- # source://cgi//lib/cgi/html.rb#20
1363
- def kbd(attributes = T.unsafe(nil), &block); end
1364
-
1365
- # source://cgi//lib/cgi/html.rb#20
1366
- def label(attributes = T.unsafe(nil), &block); end
1367
-
1368
- # source://cgi//lib/cgi/html.rb#20
1369
- def legend(attributes = T.unsafe(nil), &block); end
1370
-
1371
- # source://cgi//lib/cgi/html.rb#61
1372
- def li(attributes = T.unsafe(nil), &block); end
1373
-
1374
- # source://cgi//lib/cgi/html.rb#43
1375
- def link(attributes = T.unsafe(nil), &block); end
1376
-
1377
- # source://cgi//lib/cgi/html.rb#20
1378
- def map(attributes = T.unsafe(nil), &block); end
1379
-
1380
- # source://cgi//lib/cgi/html.rb#43
1381
- def meta(attributes = T.unsafe(nil), &block); end
1382
-
1383
- # source://cgi//lib/cgi/html.rb#20
1384
- def noscript(attributes = T.unsafe(nil), &block); end
1385
-
1386
- # source://cgi//lib/cgi/html.rb#20
1387
- def object(attributes = T.unsafe(nil), &block); end
1388
-
1389
- # source://cgi//lib/cgi/html.rb#20
1390
- def ol(attributes = T.unsafe(nil), &block); end
1391
-
1392
- # source://cgi//lib/cgi/html.rb#20
1393
- def optgroup(attributes = T.unsafe(nil), &block); end
1394
-
1395
- # source://cgi//lib/cgi/html.rb#61
1396
- def option(attributes = T.unsafe(nil), &block); end
1397
-
1398
- # source://cgi//lib/cgi/html.rb#61
1399
- def p(attributes = T.unsafe(nil), &block); end
1400
-
1401
- # source://cgi//lib/cgi/html.rb#43
1402
- def param(attributes = T.unsafe(nil), &block); end
1403
-
1404
- # source://cgi//lib/cgi/html.rb#20
1405
- def pre(attributes = T.unsafe(nil), &block); end
1406
-
1407
- # source://cgi//lib/cgi/html.rb#20
1408
- def q(attributes = T.unsafe(nil), &block); end
1409
-
1410
- # source://cgi//lib/cgi/html.rb#20
1411
- def samp(attributes = T.unsafe(nil), &block); end
1412
-
1413
- # source://cgi//lib/cgi/html.rb#20
1414
- def script(attributes = T.unsafe(nil), &block); end
1415
-
1416
- # source://cgi//lib/cgi/html.rb#20
1417
- def select(attributes = T.unsafe(nil), &block); end
1418
-
1419
- # source://cgi//lib/cgi/html.rb#20
1420
- def small(attributes = T.unsafe(nil), &block); end
1421
-
1422
- # source://cgi//lib/cgi/html.rb#20
1423
- def span(attributes = T.unsafe(nil), &block); end
1424
-
1425
- # source://cgi//lib/cgi/html.rb#20
1426
- def strong(attributes = T.unsafe(nil), &block); end
1427
-
1428
- # source://cgi//lib/cgi/html.rb#20
1429
- def style(attributes = T.unsafe(nil), &block); end
1430
-
1431
- # source://cgi//lib/cgi/html.rb#20
1432
- def sub(attributes = T.unsafe(nil), &block); end
1433
-
1434
- # source://cgi//lib/cgi/html.rb#20
1435
- def sup(attributes = T.unsafe(nil), &block); end
1436
-
1437
- # source://cgi//lib/cgi/html.rb#20
1438
- def table(attributes = T.unsafe(nil), &block); end
1439
-
1440
- # source://cgi//lib/cgi/html.rb#61
1441
- def tbody(attributes = T.unsafe(nil), &block); end
1442
-
1443
- # source://cgi//lib/cgi/html.rb#61
1444
- def td(attributes = T.unsafe(nil), &block); end
1445
-
1446
- # source://cgi//lib/cgi/html.rb#20
1447
- def textarea(attributes = T.unsafe(nil), &block); end
1448
-
1449
- # source://cgi//lib/cgi/html.rb#61
1450
- def tfoot(attributes = T.unsafe(nil), &block); end
1451
-
1452
- # source://cgi//lib/cgi/html.rb#61
1453
- def th(attributes = T.unsafe(nil), &block); end
1454
-
1455
- # source://cgi//lib/cgi/html.rb#61
1456
- def thead(attributes = T.unsafe(nil), &block); end
1457
-
1458
- # source://cgi//lib/cgi/html.rb#20
1459
- def title(attributes = T.unsafe(nil), &block); end
1460
-
1461
- # source://cgi//lib/cgi/html.rb#61
1462
- def tr(attributes = T.unsafe(nil), &block); end
1463
-
1464
- # source://cgi//lib/cgi/html.rb#20
1465
- def tt(attributes = T.unsafe(nil), &block); end
1466
-
1467
- # source://cgi//lib/cgi/html.rb#20
1468
- def ul(attributes = T.unsafe(nil), &block); end
1469
-
1470
- # source://cgi//lib/cgi/html.rb#20
1471
- def var(attributes = T.unsafe(nil), &block); end
1472
- end
1473
-
1474
- # Mixin module for generating HTML version 4 with framesets.
1475
- #
1476
- # source://cgi//lib/cgi/html.rb#941
1477
- module CGI::Html4Fr
1478
- include ::CGI::TagMaker
1479
-
1480
- # The DOCTYPE declaration for this version of HTML
1481
- #
1482
- # source://cgi//lib/cgi/html.rb#945
1483
- def doctype; end
1484
-
1485
- # source://cgi//lib/cgi/html.rb#43
1486
- def frame(attributes = T.unsafe(nil), &block); end
1487
-
1488
- # source://cgi//lib/cgi/html.rb#20
1489
- def frameset(attributes = T.unsafe(nil), &block); end
1490
- end
1491
-
1492
- # Mixin module for HTML version 4 transitional generation methods.
1493
- #
1494
- # source://cgi//lib/cgi/html.rb#900
1495
- module CGI::Html4Tr
1496
- include ::CGI::TagMaker
1497
-
1498
- # source://cgi//lib/cgi/html.rb#20
1499
- def a(attributes = T.unsafe(nil), &block); end
1500
-
1501
- # source://cgi//lib/cgi/html.rb#20
1502
- def abbr(attributes = T.unsafe(nil), &block); end
1503
-
1504
- # source://cgi//lib/cgi/html.rb#20
1505
- def acronym(attributes = T.unsafe(nil), &block); end
1506
-
1507
- # source://cgi//lib/cgi/html.rb#20
1508
- def address(attributes = T.unsafe(nil), &block); end
1509
-
1510
- # source://cgi//lib/cgi/html.rb#20
1511
- def applet(attributes = T.unsafe(nil), &block); end
1512
-
1513
- # source://cgi//lib/cgi/html.rb#43
1514
- def area(attributes = T.unsafe(nil), &block); end
1515
-
1516
- # source://cgi//lib/cgi/html.rb#20
1517
- def b(attributes = T.unsafe(nil), &block); end
1518
-
1519
- # source://cgi//lib/cgi/html.rb#43
1520
- def base(attributes = T.unsafe(nil), &block); end
1521
-
1522
- # source://cgi//lib/cgi/html.rb#43
1523
- def basefont(attributes = T.unsafe(nil), &block); end
1524
-
1525
- # source://cgi//lib/cgi/html.rb#20
1526
- def bdo(attributes = T.unsafe(nil), &block); end
1527
-
1528
- # source://cgi//lib/cgi/html.rb#20
1529
- def big(attributes = T.unsafe(nil), &block); end
1530
-
1531
- # source://cgi//lib/cgi/html.rb#20
1532
- def blockquote(attributes = T.unsafe(nil), &block); end
1533
-
1534
- # source://cgi//lib/cgi/html.rb#61
1535
- def body(attributes = T.unsafe(nil), &block); end
1536
-
1537
- # source://cgi//lib/cgi/html.rb#43
1538
- def br(attributes = T.unsafe(nil), &block); end
1539
-
1540
- # source://cgi//lib/cgi/html.rb#20
1541
- def button(attributes = T.unsafe(nil), &block); end
1542
-
1543
- # source://cgi//lib/cgi/html.rb#20
1544
- def caption(attributes = T.unsafe(nil), &block); end
1545
-
1546
- # source://cgi//lib/cgi/html.rb#20
1547
- def center(attributes = T.unsafe(nil), &block); end
1548
-
1549
- # source://cgi//lib/cgi/html.rb#20
1550
- def cite(attributes = T.unsafe(nil), &block); end
1551
-
1552
- # source://cgi//lib/cgi/html.rb#20
1553
- def code(attributes = T.unsafe(nil), &block); end
1554
-
1555
- # source://cgi//lib/cgi/html.rb#43
1556
- def col(attributes = T.unsafe(nil), &block); end
1557
-
1558
- # source://cgi//lib/cgi/html.rb#61
1559
- def colgroup(attributes = T.unsafe(nil), &block); end
1560
-
1561
- # source://cgi//lib/cgi/html.rb#61
1562
- def dd(attributes = T.unsafe(nil), &block); end
1563
-
1564
- # source://cgi//lib/cgi/html.rb#20
1565
- def del(attributes = T.unsafe(nil), &block); end
1566
-
1567
- # source://cgi//lib/cgi/html.rb#20
1568
- def dfn(attributes = T.unsafe(nil), &block); end
1569
-
1570
- # source://cgi//lib/cgi/html.rb#20
1571
- def dir(attributes = T.unsafe(nil), &block); end
1572
-
1573
- # source://cgi//lib/cgi/html.rb#20
1574
- def div(attributes = T.unsafe(nil), &block); end
1575
-
1576
- # source://cgi//lib/cgi/html.rb#20
1577
- def dl(attributes = T.unsafe(nil), &block); end
1578
-
1579
- # The DOCTYPE declaration for this version of HTML
1580
- #
1581
- # source://cgi//lib/cgi/html.rb#904
1582
- def doctype; end
1583
-
1584
- # source://cgi//lib/cgi/html.rb#61
1585
- def dt(attributes = T.unsafe(nil), &block); end
1586
-
1587
- # source://cgi//lib/cgi/html.rb#20
1588
- def em(attributes = T.unsafe(nil), &block); end
1589
-
1590
- # source://cgi//lib/cgi/html.rb#20
1591
- def fieldset(attributes = T.unsafe(nil), &block); end
1592
-
1593
- # source://cgi//lib/cgi/html.rb#20
1594
- def font(attributes = T.unsafe(nil), &block); end
1595
-
1596
- # source://cgi//lib/cgi/html.rb#20
1597
- def form(attributes = T.unsafe(nil), &block); end
1598
-
1599
- # source://cgi//lib/cgi/html.rb#20
1600
- def h1(attributes = T.unsafe(nil), &block); end
1601
-
1602
- # source://cgi//lib/cgi/html.rb#20
1603
- def h2(attributes = T.unsafe(nil), &block); end
1604
-
1605
- # source://cgi//lib/cgi/html.rb#20
1606
- def h3(attributes = T.unsafe(nil), &block); end
1607
-
1608
- # source://cgi//lib/cgi/html.rb#20
1609
- def h4(attributes = T.unsafe(nil), &block); end
1610
-
1611
- # source://cgi//lib/cgi/html.rb#20
1612
- def h5(attributes = T.unsafe(nil), &block); end
1613
-
1614
- # source://cgi//lib/cgi/html.rb#20
1615
- def h6(attributes = T.unsafe(nil), &block); end
1616
-
1617
- # source://cgi//lib/cgi/html.rb#61
1618
- def head(attributes = T.unsafe(nil), &block); end
1619
-
1620
- # source://cgi//lib/cgi/html.rb#43
1621
- def hr(attributes = T.unsafe(nil), &block); end
1622
-
1623
- # source://cgi//lib/cgi/html.rb#61
1624
- def html(attributes = T.unsafe(nil), &block); end
1625
-
1626
- # source://cgi//lib/cgi/html.rb#20
1627
- def i(attributes = T.unsafe(nil), &block); end
1628
-
1629
- # source://cgi//lib/cgi/html.rb#20
1630
- def iframe(attributes = T.unsafe(nil), &block); end
1631
-
1632
- # source://cgi//lib/cgi/html.rb#43
1633
- def img(attributes = T.unsafe(nil), &block); end
1634
-
1635
- # source://cgi//lib/cgi/html.rb#43
1636
- def input(attributes = T.unsafe(nil), &block); end
1637
-
1638
- # source://cgi//lib/cgi/html.rb#20
1639
- def ins(attributes = T.unsafe(nil), &block); end
1640
-
1641
- # source://cgi//lib/cgi/html.rb#43
1642
- def isindex(attributes = T.unsafe(nil), &block); end
1643
-
1644
- # source://cgi//lib/cgi/html.rb#20
1645
- def kbd(attributes = T.unsafe(nil), &block); end
1646
-
1647
- # source://cgi//lib/cgi/html.rb#20
1648
- def label(attributes = T.unsafe(nil), &block); end
1649
-
1650
- # source://cgi//lib/cgi/html.rb#20
1651
- def legend(attributes = T.unsafe(nil), &block); end
1652
-
1653
- # source://cgi//lib/cgi/html.rb#61
1654
- def li(attributes = T.unsafe(nil), &block); end
1655
-
1656
- # source://cgi//lib/cgi/html.rb#43
1657
- def link(attributes = T.unsafe(nil), &block); end
1658
-
1659
- # source://cgi//lib/cgi/html.rb#20
1660
- def map(attributes = T.unsafe(nil), &block); end
1661
-
1662
- # source://cgi//lib/cgi/html.rb#20
1663
- def menu(attributes = T.unsafe(nil), &block); end
1664
-
1665
- # source://cgi//lib/cgi/html.rb#43
1666
- def meta(attributes = T.unsafe(nil), &block); end
1667
-
1668
- # source://cgi//lib/cgi/html.rb#20
1669
- def noframes(attributes = T.unsafe(nil), &block); end
1670
-
1671
- # source://cgi//lib/cgi/html.rb#20
1672
- def noscript(attributes = T.unsafe(nil), &block); end
1673
-
1674
- # source://cgi//lib/cgi/html.rb#20
1675
- def object(attributes = T.unsafe(nil), &block); end
1676
-
1677
- # source://cgi//lib/cgi/html.rb#20
1678
- def ol(attributes = T.unsafe(nil), &block); end
1679
-
1680
- # source://cgi//lib/cgi/html.rb#20
1681
- def optgroup(attributes = T.unsafe(nil), &block); end
1682
-
1683
- # source://cgi//lib/cgi/html.rb#61
1684
- def option(attributes = T.unsafe(nil), &block); end
1685
-
1686
- # source://cgi//lib/cgi/html.rb#61
1687
- def p(attributes = T.unsafe(nil), &block); end
1688
-
1689
- # source://cgi//lib/cgi/html.rb#43
1690
- def param(attributes = T.unsafe(nil), &block); end
1691
-
1692
- # source://cgi//lib/cgi/html.rb#20
1693
- def pre(attributes = T.unsafe(nil), &block); end
1694
-
1695
- # source://cgi//lib/cgi/html.rb#20
1696
- def q(attributes = T.unsafe(nil), &block); end
1697
-
1698
- # source://cgi//lib/cgi/html.rb#20
1699
- def s(attributes = T.unsafe(nil), &block); end
1700
-
1701
- # source://cgi//lib/cgi/html.rb#20
1702
- def samp(attributes = T.unsafe(nil), &block); end
1703
-
1704
- # source://cgi//lib/cgi/html.rb#20
1705
- def script(attributes = T.unsafe(nil), &block); end
1706
-
1707
- # source://cgi//lib/cgi/html.rb#20
1708
- def select(attributes = T.unsafe(nil), &block); end
1709
-
1710
- # source://cgi//lib/cgi/html.rb#20
1711
- def small(attributes = T.unsafe(nil), &block); end
1712
-
1713
- # source://cgi//lib/cgi/html.rb#20
1714
- def span(attributes = T.unsafe(nil), &block); end
1715
-
1716
- # source://cgi//lib/cgi/html.rb#20
1717
- def strike(attributes = T.unsafe(nil), &block); end
1718
-
1719
- # source://cgi//lib/cgi/html.rb#20
1720
- def strong(attributes = T.unsafe(nil), &block); end
1721
-
1722
- # source://cgi//lib/cgi/html.rb#20
1723
- def style(attributes = T.unsafe(nil), &block); end
1724
-
1725
- # source://cgi//lib/cgi/html.rb#20
1726
- def sub(attributes = T.unsafe(nil), &block); end
1727
-
1728
- # source://cgi//lib/cgi/html.rb#20
1729
- def sup(attributes = T.unsafe(nil), &block); end
1730
-
1731
- # source://cgi//lib/cgi/html.rb#20
1732
- def table(attributes = T.unsafe(nil), &block); end
1733
-
1734
- # source://cgi//lib/cgi/html.rb#61
1735
- def tbody(attributes = T.unsafe(nil), &block); end
1736
-
1737
- # source://cgi//lib/cgi/html.rb#61
1738
- def td(attributes = T.unsafe(nil), &block); end
1739
-
1740
- # source://cgi//lib/cgi/html.rb#20
1741
- def textarea(attributes = T.unsafe(nil), &block); end
1742
-
1743
- # source://cgi//lib/cgi/html.rb#61
1744
- def tfoot(attributes = T.unsafe(nil), &block); end
1745
-
1746
- # source://cgi//lib/cgi/html.rb#61
1747
- def th(attributes = T.unsafe(nil), &block); end
1748
-
1749
- # source://cgi//lib/cgi/html.rb#61
1750
- def thead(attributes = T.unsafe(nil), &block); end
1751
-
1752
- # source://cgi//lib/cgi/html.rb#20
1753
- def title(attributes = T.unsafe(nil), &block); end
1754
-
1755
- # source://cgi//lib/cgi/html.rb#61
1756
- def tr(attributes = T.unsafe(nil), &block); end
1757
-
1758
- # source://cgi//lib/cgi/html.rb#20
1759
- def tt(attributes = T.unsafe(nil), &block); end
1760
-
1761
- # source://cgi//lib/cgi/html.rb#20
1762
- def u(attributes = T.unsafe(nil), &block); end
1763
-
1764
- # source://cgi//lib/cgi/html.rb#20
1765
- def ul(attributes = T.unsafe(nil), &block); end
1766
-
1767
- # source://cgi//lib/cgi/html.rb#20
1768
- def var(attributes = T.unsafe(nil), &block); end
1769
- end
1770
-
1771
- # Mixin module for HTML version 5 generation methods.
1772
- #
1773
- # source://cgi//lib/cgi/html.rb#968
1774
- module CGI::Html5
1775
- include ::CGI::TagMaker
1776
-
1777
- # source://cgi//lib/cgi/html.rb#20
1778
- def a(attributes = T.unsafe(nil), &block); end
1779
-
1780
- # source://cgi//lib/cgi/html.rb#20
1781
- def abbr(attributes = T.unsafe(nil), &block); end
1782
-
1783
- # source://cgi//lib/cgi/html.rb#20
1784
- def address(attributes = T.unsafe(nil), &block); end
1785
-
1786
- # source://cgi//lib/cgi/html.rb#43
1787
- def area(attributes = T.unsafe(nil), &block); end
1788
-
1789
- # source://cgi//lib/cgi/html.rb#20
1790
- def article(attributes = T.unsafe(nil), &block); end
1791
-
1792
- # source://cgi//lib/cgi/html.rb#20
1793
- def aside(attributes = T.unsafe(nil), &block); end
1794
-
1795
- # source://cgi//lib/cgi/html.rb#20
1796
- def audio(attributes = T.unsafe(nil), &block); end
1797
-
1798
- # source://cgi//lib/cgi/html.rb#20
1799
- def b(attributes = T.unsafe(nil), &block); end
1800
-
1801
- # source://cgi//lib/cgi/html.rb#43
1802
- def base(attributes = T.unsafe(nil), &block); end
1803
-
1804
- # source://cgi//lib/cgi/html.rb#20
1805
- def bdi(attributes = T.unsafe(nil), &block); end
1806
-
1807
- # source://cgi//lib/cgi/html.rb#20
1808
- def bdo(attributes = T.unsafe(nil), &block); end
1809
-
1810
- # source://cgi//lib/cgi/html.rb#20
1811
- def blockquote(attributes = T.unsafe(nil), &block); end
1812
-
1813
- # source://cgi//lib/cgi/html.rb#61
1814
- def body(attributes = T.unsafe(nil), &block); end
1815
-
1816
- # source://cgi//lib/cgi/html.rb#43
1817
- def br(attributes = T.unsafe(nil), &block); end
1818
-
1819
- # source://cgi//lib/cgi/html.rb#20
1820
- def button(attributes = T.unsafe(nil), &block); end
1821
-
1822
- # source://cgi//lib/cgi/html.rb#20
1823
- def canvas(attributes = T.unsafe(nil), &block); end
1824
-
1825
- # source://cgi//lib/cgi/html.rb#20
1826
- def caption(attributes = T.unsafe(nil), &block); end
1827
-
1828
- # source://cgi//lib/cgi/html.rb#20
1829
- def cite(attributes = T.unsafe(nil), &block); end
1830
-
1831
- # source://cgi//lib/cgi/html.rb#20
1832
- def code(attributes = T.unsafe(nil), &block); end
1833
-
1834
- # source://cgi//lib/cgi/html.rb#43
1835
- def col(attributes = T.unsafe(nil), &block); end
1836
-
1837
- # source://cgi//lib/cgi/html.rb#61
1838
- def colgroup(attributes = T.unsafe(nil), &block); end
1839
-
1840
- # source://cgi//lib/cgi/html.rb#43
1841
- def command(attributes = T.unsafe(nil), &block); end
1842
-
1843
- # source://cgi//lib/cgi/html.rb#20
1844
- def datalist(attributes = T.unsafe(nil), &block); end
1845
-
1846
- # source://cgi//lib/cgi/html.rb#61
1847
- def dd(attributes = T.unsafe(nil), &block); end
1848
-
1849
- # source://cgi//lib/cgi/html.rb#20
1850
- def del(attributes = T.unsafe(nil), &block); end
1851
-
1852
- # source://cgi//lib/cgi/html.rb#20
1853
- def details(attributes = T.unsafe(nil), &block); end
1854
-
1855
- # source://cgi//lib/cgi/html.rb#20
1856
- def dfn(attributes = T.unsafe(nil), &block); end
1857
-
1858
- # source://cgi//lib/cgi/html.rb#20
1859
- def dialog(attributes = T.unsafe(nil), &block); end
1860
-
1861
- # source://cgi//lib/cgi/html.rb#20
1862
- def div(attributes = T.unsafe(nil), &block); end
1863
-
1864
- # source://cgi//lib/cgi/html.rb#20
1865
- def dl(attributes = T.unsafe(nil), &block); end
1866
-
1867
- # The DOCTYPE declaration for this version of HTML
1868
- #
1869
- # source://cgi//lib/cgi/html.rb#972
1870
- def doctype; end
1871
-
1872
- # source://cgi//lib/cgi/html.rb#61
1873
- def dt(attributes = T.unsafe(nil), &block); end
1874
-
1875
- # source://cgi//lib/cgi/html.rb#20
1876
- def em(attributes = T.unsafe(nil), &block); end
1877
-
1878
- # source://cgi//lib/cgi/html.rb#43
1879
- def embed(attributes = T.unsafe(nil), &block); end
1880
-
1881
- # source://cgi//lib/cgi/html.rb#20
1882
- def fieldset(attributes = T.unsafe(nil), &block); end
1883
-
1884
- # source://cgi//lib/cgi/html.rb#20
1885
- def figcaption(attributes = T.unsafe(nil), &block); end
1886
-
1887
- # source://cgi//lib/cgi/html.rb#20
1888
- def figure(attributes = T.unsafe(nil), &block); end
1889
-
1890
- # source://cgi//lib/cgi/html.rb#20
1891
- def footer(attributes = T.unsafe(nil), &block); end
1892
-
1893
- # source://cgi//lib/cgi/html.rb#20
1894
- def form(attributes = T.unsafe(nil), &block); end
1895
-
1896
- # source://cgi//lib/cgi/html.rb#20
1897
- def h1(attributes = T.unsafe(nil), &block); end
1898
-
1899
- # source://cgi//lib/cgi/html.rb#20
1900
- def h2(attributes = T.unsafe(nil), &block); end
1901
-
1902
- # source://cgi//lib/cgi/html.rb#20
1903
- def h3(attributes = T.unsafe(nil), &block); end
1904
-
1905
- # source://cgi//lib/cgi/html.rb#20
1906
- def h4(attributes = T.unsafe(nil), &block); end
1907
-
1908
- # source://cgi//lib/cgi/html.rb#20
1909
- def h5(attributes = T.unsafe(nil), &block); end
1910
-
1911
- # source://cgi//lib/cgi/html.rb#20
1912
- def h6(attributes = T.unsafe(nil), &block); end
1913
-
1914
- # source://cgi//lib/cgi/html.rb#61
1915
- def head(attributes = T.unsafe(nil), &block); end
1916
-
1917
- # source://cgi//lib/cgi/html.rb#20
1918
- def header(attributes = T.unsafe(nil), &block); end
1919
-
1920
- # source://cgi//lib/cgi/html.rb#20
1921
- def hgroup(attributes = T.unsafe(nil), &block); end
1922
-
1923
- # source://cgi//lib/cgi/html.rb#43
1924
- def hr(attributes = T.unsafe(nil), &block); end
1925
-
1926
- # source://cgi//lib/cgi/html.rb#61
1927
- def html(attributes = T.unsafe(nil), &block); end
1928
-
1929
- # source://cgi//lib/cgi/html.rb#20
1930
- def i(attributes = T.unsafe(nil), &block); end
1931
-
1932
- # source://cgi//lib/cgi/html.rb#20
1933
- def iframe(attributes = T.unsafe(nil), &block); end
1934
-
1935
- # source://cgi//lib/cgi/html.rb#43
1936
- def img(attributes = T.unsafe(nil), &block); end
1937
-
1938
- # source://cgi//lib/cgi/html.rb#43
1939
- def input(attributes = T.unsafe(nil), &block); end
1940
-
1941
- # source://cgi//lib/cgi/html.rb#20
1942
- def ins(attributes = T.unsafe(nil), &block); end
1943
-
1944
- # source://cgi//lib/cgi/html.rb#20
1945
- def kbd(attributes = T.unsafe(nil), &block); end
1946
-
1947
- # source://cgi//lib/cgi/html.rb#43
1948
- def keygen(attributes = T.unsafe(nil), &block); end
1949
-
1950
- # source://cgi//lib/cgi/html.rb#20
1951
- def label(attributes = T.unsafe(nil), &block); end
1952
-
1953
- # source://cgi//lib/cgi/html.rb#20
1954
- def legend(attributes = T.unsafe(nil), &block); end
1955
-
1956
- # source://cgi//lib/cgi/html.rb#61
1957
- def li(attributes = T.unsafe(nil), &block); end
1958
-
1959
- # source://cgi//lib/cgi/html.rb#43
1960
- def link(attributes = T.unsafe(nil), &block); end
1961
-
1962
- # source://cgi//lib/cgi/html.rb#20
1963
- def map(attributes = T.unsafe(nil), &block); end
1964
-
1965
- # source://cgi//lib/cgi/html.rb#20
1966
- def mark(attributes = T.unsafe(nil), &block); end
1967
-
1968
- # source://cgi//lib/cgi/html.rb#20
1969
- def menu(attributes = T.unsafe(nil), &block); end
1970
-
1971
- # source://cgi//lib/cgi/html.rb#43
1972
- def meta(attributes = T.unsafe(nil), &block); end
1973
-
1974
- # source://cgi//lib/cgi/html.rb#20
1975
- def meter(attributes = T.unsafe(nil), &block); end
1976
-
1977
- # source://cgi//lib/cgi/html.rb#20
1978
- def nav(attributes = T.unsafe(nil), &block); end
1979
-
1980
- # source://cgi//lib/cgi/html.rb#20
1981
- def noscript(attributes = T.unsafe(nil), &block); end
1982
-
1983
- # source://cgi//lib/cgi/html.rb#20
1984
- def object(attributes = T.unsafe(nil), &block); end
1985
-
1986
- # source://cgi//lib/cgi/html.rb#20
1987
- def ol(attributes = T.unsafe(nil), &block); end
1988
-
1989
- # source://cgi//lib/cgi/html.rb#61
1990
- def optgroup(attributes = T.unsafe(nil), &block); end
1991
-
1992
- # source://cgi//lib/cgi/html.rb#61
1993
- def option(attributes = T.unsafe(nil), &block); end
1994
-
1995
- # source://cgi//lib/cgi/html.rb#20
1996
- def output(attributes = T.unsafe(nil), &block); end
1997
-
1998
- # source://cgi//lib/cgi/html.rb#61
1999
- def p(attributes = T.unsafe(nil), &block); end
2000
-
2001
- # source://cgi//lib/cgi/html.rb#43
2002
- def param(attributes = T.unsafe(nil), &block); end
2003
-
2004
- # source://cgi//lib/cgi/html.rb#20
2005
- def pre(attributes = T.unsafe(nil), &block); end
2006
-
2007
- # source://cgi//lib/cgi/html.rb#20
2008
- def progress(attributes = T.unsafe(nil), &block); end
2009
-
2010
- # source://cgi//lib/cgi/html.rb#20
2011
- def q(attributes = T.unsafe(nil), &block); end
2012
-
2013
- # source://cgi//lib/cgi/html.rb#61
2014
- def rp(attributes = T.unsafe(nil), &block); end
2015
-
2016
- # source://cgi//lib/cgi/html.rb#61
2017
- def rt(attributes = T.unsafe(nil), &block); end
2018
-
2019
- # source://cgi//lib/cgi/html.rb#20
2020
- def ruby(attributes = T.unsafe(nil), &block); end
2021
-
2022
- # source://cgi//lib/cgi/html.rb#20
2023
- def s(attributes = T.unsafe(nil), &block); end
2024
-
2025
- # source://cgi//lib/cgi/html.rb#20
2026
- def samp(attributes = T.unsafe(nil), &block); end
2027
-
2028
- # source://cgi//lib/cgi/html.rb#20
2029
- def script(attributes = T.unsafe(nil), &block); end
2030
-
2031
- # source://cgi//lib/cgi/html.rb#20
2032
- def section(attributes = T.unsafe(nil), &block); end
2033
-
2034
- # source://cgi//lib/cgi/html.rb#20
2035
- def select(attributes = T.unsafe(nil), &block); end
2036
-
2037
- # source://cgi//lib/cgi/html.rb#20
2038
- def small(attributes = T.unsafe(nil), &block); end
2039
-
2040
- # source://cgi//lib/cgi/html.rb#43
2041
- def source(attributes = T.unsafe(nil), &block); end
2042
-
2043
- # source://cgi//lib/cgi/html.rb#20
2044
- def span(attributes = T.unsafe(nil), &block); end
2045
-
2046
- # source://cgi//lib/cgi/html.rb#20
2047
- def strong(attributes = T.unsafe(nil), &block); end
2048
-
2049
- # source://cgi//lib/cgi/html.rb#20
2050
- def style(attributes = T.unsafe(nil), &block); end
2051
-
2052
- # source://cgi//lib/cgi/html.rb#20
2053
- def sub(attributes = T.unsafe(nil), &block); end
2054
-
2055
- # source://cgi//lib/cgi/html.rb#20
2056
- def summary(attributes = T.unsafe(nil), &block); end
2057
-
2058
- # source://cgi//lib/cgi/html.rb#20
2059
- def sup(attributes = T.unsafe(nil), &block); end
2060
-
2061
- # source://cgi//lib/cgi/html.rb#20
2062
- def table(attributes = T.unsafe(nil), &block); end
2063
-
2064
- # source://cgi//lib/cgi/html.rb#61
2065
- def tbody(attributes = T.unsafe(nil), &block); end
2066
-
2067
- # source://cgi//lib/cgi/html.rb#61
2068
- def td(attributes = T.unsafe(nil), &block); end
2069
-
2070
- # source://cgi//lib/cgi/html.rb#20
2071
- def textarea(attributes = T.unsafe(nil), &block); end
2072
-
2073
- # source://cgi//lib/cgi/html.rb#61
2074
- def tfoot(attributes = T.unsafe(nil), &block); end
2075
-
2076
- # source://cgi//lib/cgi/html.rb#61
2077
- def th(attributes = T.unsafe(nil), &block); end
2078
-
2079
- # source://cgi//lib/cgi/html.rb#61
2080
- def thead(attributes = T.unsafe(nil), &block); end
2081
-
2082
- # source://cgi//lib/cgi/html.rb#20
2083
- def time(attributes = T.unsafe(nil), &block); end
2084
-
2085
- # source://cgi//lib/cgi/html.rb#20
2086
- def title(attributes = T.unsafe(nil), &block); end
2087
-
2088
- # source://cgi//lib/cgi/html.rb#61
2089
- def tr(attributes = T.unsafe(nil), &block); end
2090
-
2091
- # source://cgi//lib/cgi/html.rb#43
2092
- def track(attributes = T.unsafe(nil), &block); end
2093
-
2094
- # source://cgi//lib/cgi/html.rb#20
2095
- def u(attributes = T.unsafe(nil), &block); end
2096
-
2097
- # source://cgi//lib/cgi/html.rb#20
2098
- def ul(attributes = T.unsafe(nil), &block); end
2099
-
2100
- # source://cgi//lib/cgi/html.rb#20
2101
- def var(attributes = T.unsafe(nil), &block); end
2102
-
2103
- # source://cgi//lib/cgi/html.rb#20
2104
- def video(attributes = T.unsafe(nil), &block); end
2105
-
2106
- # source://cgi//lib/cgi/html.rb#43
2107
- def wbr(attributes = T.unsafe(nil), &block); end
2108
- end
2109
-
2110
- # Mixin module providing HTML generation methods.
2111
- #
2112
- # For example,
2113
- # cgi.a("http://www.example.com") { "Example" }
2114
- # # => "<A HREF=\"http://www.example.com\">Example</A>"
2115
- #
2116
- # Modules Html3, Html4, etc., contain more basic HTML-generation methods
2117
- # (+#title+, +#h1+, etc.).
2118
- #
2119
- # See class CGI for a detailed example.
2120
- #
2121
- # source://cgi//lib/cgi/html.rb#79
2122
- module CGI::HtmlExtension
2123
- # Generate an Anchor element as a string.
2124
- #
2125
- # +href+ can either be a string, giving the URL
2126
- # for the HREF attribute, or it can be a hash of
2127
- # the element's attributes.
2128
- #
2129
- # The body of the element is the string returned by the no-argument
2130
- # block passed in.
2131
- #
2132
- # a("http://www.example.com") { "Example" }
2133
- # # => "<A HREF=\"http://www.example.com\">Example</A>"
2134
- #
2135
- # a("HREF" => "http://www.example.com", "TARGET" => "_top") { "Example" }
2136
- # # => "<A HREF=\"http://www.example.com\" TARGET=\"_top\">Example</A>"
2137
- #
2138
- # source://cgi//lib/cgi/html.rb#97
2139
- def a(href = T.unsafe(nil)); end
2140
-
2141
- # Generate a Document Base URI element as a String.
2142
- #
2143
- # +href+ can either by a string, giving the base URL for the HREF
2144
- # attribute, or it can be a has of the element's attributes.
2145
- #
2146
- # The passed-in no-argument block is ignored.
2147
- #
2148
- # base("http://www.example.com/cgi")
2149
- # # => "<BASE HREF=\"http://www.example.com/cgi\">"
2150
- #
2151
- # source://cgi//lib/cgi/html.rb#115
2152
- def base(href = T.unsafe(nil)); end
2153
-
2154
- # Generate a BlockQuote element as a string.
2155
- #
2156
- # +cite+ can either be a string, give the URI for the source of
2157
- # the quoted text, or a hash, giving all attributes of the element,
2158
- # or it can be omitted, in which case the element has no attributes.
2159
- #
2160
- # The body is provided by the passed-in no-argument block
2161
- #
2162
- # blockquote("http://www.example.com/quotes/foo.html") { "Foo!" }
2163
- # #=> "<BLOCKQUOTE CITE=\"http://www.example.com/quotes/foo.html\">Foo!</BLOCKQUOTE>
2164
- #
2165
- # source://cgi//lib/cgi/html.rb#134
2166
- def blockquote(cite = T.unsafe(nil)); end
2167
-
2168
- # Generate a Table Caption element as a string.
2169
- #
2170
- # +align+ can be a string, giving the alignment of the caption
2171
- # (one of top, bottom, left, or right). It can be a hash of
2172
- # all the attributes of the element. Or it can be omitted.
2173
- #
2174
- # The body of the element is provided by the passed-in no-argument block.
2175
- #
2176
- # caption("left") { "Capital Cities" }
2177
- # # => <CAPTION ALIGN=\"left\">Capital Cities</CAPTION>
2178
- #
2179
- # source://cgi//lib/cgi/html.rb#154
2180
- def caption(align = T.unsafe(nil)); end
2181
-
2182
- # Generate a Checkbox Input element as a string.
2183
- #
2184
- # The attributes of the element can be specified as three arguments,
2185
- # +name+, +value+, and +checked+. +checked+ is a boolean value;
2186
- # if true, the CHECKED attribute will be included in the element.
2187
- #
2188
- # Alternatively, the attributes can be specified as a hash.
2189
- #
2190
- # checkbox("name")
2191
- # # = checkbox("NAME" => "name")
2192
- #
2193
- # checkbox("name", "value")
2194
- # # = checkbox("NAME" => "name", "VALUE" => "value")
2195
- #
2196
- # checkbox("name", "value", true)
2197
- # # = checkbox("NAME" => "name", "VALUE" => "value", "CHECKED" => true)
2198
- #
2199
- # source://cgi//lib/cgi/html.rb#180
2200
- def checkbox(name = T.unsafe(nil), value = T.unsafe(nil), checked = T.unsafe(nil)); end
2201
-
2202
- # Generate a sequence of checkbox elements, as a String.
2203
- #
2204
- # The checkboxes will all have the same +name+ attribute.
2205
- # Each checkbox is followed by a label.
2206
- # There will be one checkbox for each value. Each value
2207
- # can be specified as a String, which will be used both
2208
- # as the value of the VALUE attribute and as the label
2209
- # for that checkbox. A single-element array has the
2210
- # same effect.
2211
- #
2212
- # Each value can also be specified as a three-element array.
2213
- # The first element is the VALUE attribute; the second is the
2214
- # label; and the third is a boolean specifying whether this
2215
- # checkbox is CHECKED.
2216
- #
2217
- # Each value can also be specified as a two-element
2218
- # array, by omitting either the value element (defaults
2219
- # to the same as the label), or the boolean checked element
2220
- # (defaults to false).
2221
- #
2222
- # checkbox_group("name", "foo", "bar", "baz")
2223
- # # <INPUT TYPE="checkbox" NAME="name" VALUE="foo">foo
2224
- # # <INPUT TYPE="checkbox" NAME="name" VALUE="bar">bar
2225
- # # <INPUT TYPE="checkbox" NAME="name" VALUE="baz">baz
2226
- #
2227
- # checkbox_group("name", ["foo"], ["bar", true], "baz")
2228
- # # <INPUT TYPE="checkbox" NAME="name" VALUE="foo">foo
2229
- # # <INPUT TYPE="checkbox" CHECKED NAME="name" VALUE="bar">bar
2230
- # # <INPUT TYPE="checkbox" NAME="name" VALUE="baz">baz
2231
- #
2232
- # checkbox_group("name", ["1", "Foo"], ["2", "Bar", true], "Baz")
2233
- # # <INPUT TYPE="checkbox" NAME="name" VALUE="1">Foo
2234
- # # <INPUT TYPE="checkbox" CHECKED NAME="name" VALUE="2">Bar
2235
- # # <INPUT TYPE="checkbox" NAME="name" VALUE="Baz">Baz
2236
- #
2237
- # checkbox_group("NAME" => "name",
2238
- # "VALUES" => ["foo", "bar", "baz"])
2239
- #
2240
- # checkbox_group("NAME" => "name",
2241
- # "VALUES" => [["foo"], ["bar", true], "baz"])
2242
- #
2243
- # checkbox_group("NAME" => "name",
2244
- # "VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"])
2245
- #
2246
- # source://cgi//lib/cgi/html.rb#234
2247
- def checkbox_group(name = T.unsafe(nil), *values); end
2248
-
2249
- # Generate an File Upload Input element as a string.
2250
- #
2251
- # The attributes of the element can be specified as three arguments,
2252
- # +name+, +size+, and +maxlength+. +maxlength+ is the maximum length
2253
- # of the file's _name_, not of the file's _contents_.
2254
- #
2255
- # Alternatively, the attributes can be specified as a hash.
2256
- #
2257
- # See #multipart_form() for forms that include file uploads.
2258
- #
2259
- # file_field("name")
2260
- # # <INPUT TYPE="file" NAME="name" SIZE="20">
2261
- #
2262
- # file_field("name", 40)
2263
- # # <INPUT TYPE="file" NAME="name" SIZE="40">
2264
- #
2265
- # file_field("name", 40, 100)
2266
- # # <INPUT TYPE="file" NAME="name" SIZE="40" MAXLENGTH="100">
2267
- #
2268
- # file_field("NAME" => "name", "SIZE" => 40)
2269
- # # <INPUT TYPE="file" NAME="name" SIZE="40">
2270
- #
2271
- # source://cgi//lib/cgi/html.rb#276
2272
- def file_field(name = T.unsafe(nil), size = T.unsafe(nil), maxlength = T.unsafe(nil)); end
2273
-
2274
- # Generate a Form element as a string.
2275
- #
2276
- # +method+ should be either "get" or "post", and defaults to the latter.
2277
- # +action+ defaults to the current CGI script name. +enctype+
2278
- # defaults to "application/x-www-form-urlencoded".
2279
- #
2280
- # Alternatively, the attributes can be specified as a hash.
2281
- #
2282
- # See also #multipart_form() for forms that include file uploads.
2283
- #
2284
- # form{ "string" }
2285
- # # <FORM METHOD="post" ENCTYPE="application/x-www-form-urlencoded">string</FORM>
2286
- #
2287
- # form("get") { "string" }
2288
- # # <FORM METHOD="get" ENCTYPE="application/x-www-form-urlencoded">string</FORM>
2289
- #
2290
- # form("get", "url") { "string" }
2291
- # # <FORM METHOD="get" ACTION="url" ENCTYPE="application/x-www-form-urlencoded">string</FORM>
2292
- #
2293
- # form("METHOD" => "post", "ENCTYPE" => "enctype") { "string" }
2294
- # # <FORM METHOD="post" ENCTYPE="enctype">string</FORM>
2295
- #
2296
- # source://cgi//lib/cgi/html.rb#310
2297
- def form(method = T.unsafe(nil), action = T.unsafe(nil), enctype = T.unsafe(nil)); end
2298
-
2299
- # Generate a Hidden Input element as a string.
2300
- #
2301
- # The attributes of the element can be specified as two arguments,
2302
- # +name+ and +value+.
2303
- #
2304
- # Alternatively, the attributes can be specified as a hash.
2305
- #
2306
- # hidden("name")
2307
- # # <INPUT TYPE="hidden" NAME="name">
2308
- #
2309
- # hidden("name", "value")
2310
- # # <INPUT TYPE="hidden" NAME="name" VALUE="value">
2311
- #
2312
- # hidden("NAME" => "name", "VALUE" => "reset", "ID" => "foo")
2313
- # # <INPUT TYPE="hidden" NAME="name" VALUE="value" ID="foo">
2314
- #
2315
- # source://cgi//lib/cgi/html.rb#351
2316
- def hidden(name = T.unsafe(nil), value = T.unsafe(nil)); end
2317
-
2318
- # Generate a top-level HTML element as a string.
2319
- #
2320
- # The attributes of the element are specified as a hash. The
2321
- # pseudo-attribute "PRETTY" can be used to specify that the generated
2322
- # HTML string should be indented. "PRETTY" can also be specified as
2323
- # a string as the sole argument to this method. The pseudo-attribute
2324
- # "DOCTYPE", if given, is used as the leading DOCTYPE SGML tag; it
2325
- # should include the entire text of this tag, including angle brackets.
2326
- #
2327
- # The body of the html element is supplied as a block.
2328
- #
2329
- # html{ "string" }
2330
- # # <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML>string</HTML>
2331
- #
2332
- # html("LANG" => "ja") { "string" }
2333
- # # <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML LANG="ja">string</HTML>
2334
- #
2335
- # html("DOCTYPE" => false) { "string" }
2336
- # # <HTML>string</HTML>
2337
- #
2338
- # html("DOCTYPE" => '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">') { "string" }
2339
- # # <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><HTML>string</HTML>
2340
- #
2341
- # html("PRETTY" => " ") { "<BODY></BODY>" }
2342
- # # <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2343
- # # <HTML>
2344
- # # <BODY>
2345
- # # </BODY>
2346
- # # </HTML>
2347
- #
2348
- # html("PRETTY" => "\t") { "<BODY></BODY>" }
2349
- # # <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2350
- # # <HTML>
2351
- # # <BODY>
2352
- # # </BODY>
2353
- # # </HTML>
2354
- #
2355
- # html("PRETTY") { "<BODY></BODY>" }
2356
- # # = html("PRETTY" => " ") { "<BODY></BODY>" }
2357
- #
2358
- # html(if $VERBOSE then "PRETTY" end) { "HTML string" }
2359
- #
2360
- # source://cgi//lib/cgi/html.rb#403
2361
- def html(attributes = T.unsafe(nil)); end
2362
-
2363
- # Generate an Image Button Input element as a string.
2364
- #
2365
- # +src+ is the URL of the image to use for the button. +name+
2366
- # is the input name. +alt+ is the alternative text for the image.
2367
- #
2368
- # Alternatively, the attributes can be specified as a hash.
2369
- #
2370
- # image_button("url")
2371
- # # <INPUT TYPE="image" SRC="url">
2372
- #
2373
- # image_button("url", "name", "string")
2374
- # # <INPUT TYPE="image" SRC="url" NAME="name" ALT="string">
2375
- #
2376
- # image_button("SRC" => "url", "ALT" => "string")
2377
- # # <INPUT TYPE="image" SRC="url" ALT="string">
2378
- #
2379
- # source://cgi//lib/cgi/html.rb#448
2380
- def image_button(src = T.unsafe(nil), name = T.unsafe(nil), alt = T.unsafe(nil)); end
2381
-
2382
- # Generate an Image element as a string.
2383
- #
2384
- # +src+ is the URL of the image. +alt+ is the alternative text for
2385
- # the image. +width+ is the width of the image, and +height+ is
2386
- # its height.
2387
- #
2388
- # Alternatively, the attributes can be specified as a hash.
2389
- #
2390
- # img("src", "alt", 100, 50)
2391
- # # <IMG SRC="src" ALT="alt" WIDTH="100" HEIGHT="50">
2392
- #
2393
- # img("SRC" => "src", "ALT" => "alt", "WIDTH" => 100, "HEIGHT" => 50)
2394
- # # <IMG SRC="src" ALT="alt" WIDTH="100" HEIGHT="50">
2395
- #
2396
- # source://cgi//lib/cgi/html.rb#474
2397
- def img(src = T.unsafe(nil), alt = T.unsafe(nil), width = T.unsafe(nil), height = T.unsafe(nil)); end
2398
-
2399
- # Generate a Form element with multipart encoding as a String.
2400
- #
2401
- # Multipart encoding is used for forms that include file uploads.
2402
- #
2403
- # +action+ is the action to perform. +enctype+ is the encoding
2404
- # type, which defaults to "multipart/form-data".
2405
- #
2406
- # Alternatively, the attributes can be specified as a hash.
2407
- #
2408
- # multipart_form{ "string" }
2409
- # # <FORM METHOD="post" ENCTYPE="multipart/form-data">string</FORM>
2410
- #
2411
- # multipart_form("url") { "string" }
2412
- # # <FORM METHOD="post" ACTION="url" ENCTYPE="multipart/form-data">string</FORM>
2413
- #
2414
- # source://cgi//lib/cgi/html.rb#500
2415
- def multipart_form(action = T.unsafe(nil), enctype = T.unsafe(nil)); end
2416
-
2417
- # Generate a Password Input element as a string.
2418
- #
2419
- # +name+ is the name of the input field. +value+ is its default
2420
- # value. +size+ is the size of the input field display. +maxlength+
2421
- # is the maximum length of the inputted password.
2422
- #
2423
- # Alternatively, attributes can be specified as a hash.
2424
- #
2425
- # password_field("name")
2426
- # # <INPUT TYPE="password" NAME="name" SIZE="40">
2427
- #
2428
- # password_field("name", "value")
2429
- # # <INPUT TYPE="password" NAME="name" VALUE="value" SIZE="40">
2430
- #
2431
- # password_field("password", "value", 80, 200)
2432
- # # <INPUT TYPE="password" NAME="name" VALUE="value" SIZE="80" MAXLENGTH="200">
2433
- #
2434
- # password_field("NAME" => "name", "VALUE" => "value")
2435
- # # <INPUT TYPE="password" NAME="name" VALUE="value">
2436
- #
2437
- # source://cgi//lib/cgi/html.rb#542
2438
- def password_field(name = T.unsafe(nil), value = T.unsafe(nil), size = T.unsafe(nil), maxlength = T.unsafe(nil)); end
2439
-
2440
- # Generate a Select element as a string.
2441
- #
2442
- # +name+ is the name of the element. The +values+ are the options that
2443
- # can be selected from the Select menu. Each value can be a String or
2444
- # a one, two, or three-element Array. If a String or a one-element
2445
- # Array, this is both the value of that option and the text displayed for
2446
- # it. If a three-element Array, the elements are the option value, displayed
2447
- # text, and a boolean value specifying whether this option starts as selected.
2448
- # The two-element version omits either the option value (defaults to the same
2449
- # as the display text) or the boolean selected specifier (defaults to false).
2450
- #
2451
- # The attributes and options can also be specified as a hash. In this
2452
- # case, options are specified as an array of values as described above,
2453
- # with the hash key of "VALUES".
2454
- #
2455
- # popup_menu("name", "foo", "bar", "baz")
2456
- # # <SELECT NAME="name">
2457
- # # <OPTION VALUE="foo">foo</OPTION>
2458
- # # <OPTION VALUE="bar">bar</OPTION>
2459
- # # <OPTION VALUE="baz">baz</OPTION>
2460
- # # </SELECT>
2461
- #
2462
- # popup_menu("name", ["foo"], ["bar", true], "baz")
2463
- # # <SELECT NAME="name">
2464
- # # <OPTION VALUE="foo">foo</OPTION>
2465
- # # <OPTION VALUE="bar" SELECTED>bar</OPTION>
2466
- # # <OPTION VALUE="baz">baz</OPTION>
2467
- # # </SELECT>
2468
- #
2469
- # popup_menu("name", ["1", "Foo"], ["2", "Bar", true], "Baz")
2470
- # # <SELECT NAME="name">
2471
- # # <OPTION VALUE="1">Foo</OPTION>
2472
- # # <OPTION SELECTED VALUE="2">Bar</OPTION>
2473
- # # <OPTION VALUE="Baz">Baz</OPTION>
2474
- # # </SELECT>
2475
- #
2476
- # popup_menu("NAME" => "name", "SIZE" => 2, "MULTIPLE" => true,
2477
- # "VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"])
2478
- # # <SELECT NAME="name" MULTIPLE SIZE="2">
2479
- # # <OPTION VALUE="1">Foo</OPTION>
2480
- # # <OPTION SELECTED VALUE="2">Bar</OPTION>
2481
- # # <OPTION VALUE="Baz">Baz</OPTION>
2482
- # # </SELECT>
2483
- #
2484
- # source://cgi//lib/cgi/html.rb#597
2485
- def popup_menu(name = T.unsafe(nil), *values); end
2486
-
2487
- # Generates a radio-button Input element.
2488
- #
2489
- # +name+ is the name of the input field. +value+ is the value of
2490
- # the field if checked. +checked+ specifies whether the field
2491
- # starts off checked.
2492
- #
2493
- # Alternatively, the attributes can be specified as a hash.
2494
- #
2495
- # radio_button("name", "value")
2496
- # # <INPUT TYPE="radio" NAME="name" VALUE="value">
2497
- #
2498
- # radio_button("name", "value", true)
2499
- # # <INPUT TYPE="radio" NAME="name" VALUE="value" CHECKED>
2500
- #
2501
- # radio_button("NAME" => "name", "VALUE" => "value", "ID" => "foo")
2502
- # # <INPUT TYPE="radio" NAME="name" VALUE="value" ID="foo">
2503
- #
2504
- # source://cgi//lib/cgi/html.rb#646
2505
- def radio_button(name = T.unsafe(nil), value = T.unsafe(nil), checked = T.unsafe(nil)); end
2506
-
2507
- # Generate a sequence of radio button Input elements, as a String.
2508
- #
2509
- # This works the same as #checkbox_group(). However, it is not valid
2510
- # to have more than one radiobutton in a group checked.
2511
- #
2512
- # radio_group("name", "foo", "bar", "baz")
2513
- # # <INPUT TYPE="radio" NAME="name" VALUE="foo">foo
2514
- # # <INPUT TYPE="radio" NAME="name" VALUE="bar">bar
2515
- # # <INPUT TYPE="radio" NAME="name" VALUE="baz">baz
2516
- #
2517
- # radio_group("name", ["foo"], ["bar", true], "baz")
2518
- # # <INPUT TYPE="radio" NAME="name" VALUE="foo">foo
2519
- # # <INPUT TYPE="radio" CHECKED NAME="name" VALUE="bar">bar
2520
- # # <INPUT TYPE="radio" NAME="name" VALUE="baz">baz
2521
- #
2522
- # radio_group("name", ["1", "Foo"], ["2", "Bar", true], "Baz")
2523
- # # <INPUT TYPE="radio" NAME="name" VALUE="1">Foo
2524
- # # <INPUT TYPE="radio" CHECKED NAME="name" VALUE="2">Bar
2525
- # # <INPUT TYPE="radio" NAME="name" VALUE="Baz">Baz
2526
- #
2527
- # radio_group("NAME" => "name",
2528
- # "VALUES" => ["foo", "bar", "baz"])
2529
- #
2530
- # radio_group("NAME" => "name",
2531
- # "VALUES" => [["foo"], ["bar", true], "baz"])
2532
- #
2533
- # radio_group("NAME" => "name",
2534
- # "VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"])
2535
- #
2536
- # source://cgi//lib/cgi/html.rb#685
2537
- def radio_group(name = T.unsafe(nil), *values); end
2538
-
2539
- # Generate a reset button Input element, as a String.
2540
- #
2541
- # This resets the values on a form to their initial values. +value+
2542
- # is the text displayed on the button. +name+ is the name of this button.
2543
- #
2544
- # Alternatively, the attributes can be specified as a hash.
2545
- #
2546
- # reset
2547
- # # <INPUT TYPE="reset">
2548
- #
2549
- # reset("reset")
2550
- # # <INPUT TYPE="reset" VALUE="reset">
2551
- #
2552
- # reset("VALUE" => "reset", "ID" => "foo")
2553
- # # <INPUT TYPE="reset" VALUE="reset" ID="foo">
2554
- #
2555
- # source://cgi//lib/cgi/html.rb#720
2556
- def reset(value = T.unsafe(nil), name = T.unsafe(nil)); end
2557
-
2558
- # Generate a Select element as a string.
2559
- #
2560
- # +name+ is the name of the element. The +values+ are the options that
2561
- # can be selected from the Select menu. Each value can be a String or
2562
- # a one, two, or three-element Array. If a String or a one-element
2563
- # Array, this is both the value of that option and the text displayed for
2564
- # it. If a three-element Array, the elements are the option value, displayed
2565
- # text, and a boolean value specifying whether this option starts as selected.
2566
- # The two-element version omits either the option value (defaults to the same
2567
- # as the display text) or the boolean selected specifier (defaults to false).
2568
- #
2569
- # The attributes and options can also be specified as a hash. In this
2570
- # case, options are specified as an array of values as described above,
2571
- # with the hash key of "VALUES".
2572
- #
2573
- # popup_menu("name", "foo", "bar", "baz")
2574
- # # <SELECT NAME="name">
2575
- # # <OPTION VALUE="foo">foo</OPTION>
2576
- # # <OPTION VALUE="bar">bar</OPTION>
2577
- # # <OPTION VALUE="baz">baz</OPTION>
2578
- # # </SELECT>
2579
- #
2580
- # popup_menu("name", ["foo"], ["bar", true], "baz")
2581
- # # <SELECT NAME="name">
2582
- # # <OPTION VALUE="foo">foo</OPTION>
2583
- # # <OPTION VALUE="bar" SELECTED>bar</OPTION>
2584
- # # <OPTION VALUE="baz">baz</OPTION>
2585
- # # </SELECT>
2586
- #
2587
- # popup_menu("name", ["1", "Foo"], ["2", "Bar", true], "Baz")
2588
- # # <SELECT NAME="name">
2589
- # # <OPTION VALUE="1">Foo</OPTION>
2590
- # # <OPTION SELECTED VALUE="2">Bar</OPTION>
2591
- # # <OPTION VALUE="Baz">Baz</OPTION>
2592
- # # </SELECT>
2593
- #
2594
- # popup_menu("NAME" => "name", "SIZE" => 2, "MULTIPLE" => true,
2595
- # "VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"])
2596
- # # <SELECT NAME="name" MULTIPLE SIZE="2">
2597
- # # <OPTION VALUE="1">Foo</OPTION>
2598
- # # <OPTION SELECTED VALUE="2">Bar</OPTION>
2599
- # # <OPTION VALUE="Baz">Baz</OPTION>
2600
- # # </SELECT>
2601
- #
2602
- # source://cgi//lib/cgi/html.rb#597
2603
- def scrolling_list(name = T.unsafe(nil), *values); end
2604
-
2605
- # Generate a submit button Input element, as a String.
2606
- #
2607
- # +value+ is the text to display on the button. +name+ is the name
2608
- # of the input.
2609
- #
2610
- # Alternatively, the attributes can be specified as a hash.
2611
- #
2612
- # submit
2613
- # # <INPUT TYPE="submit">
2614
- #
2615
- # submit("ok")
2616
- # # <INPUT TYPE="submit" VALUE="ok">
2617
- #
2618
- # submit("ok", "button1")
2619
- # # <INPUT TYPE="submit" VALUE="ok" NAME="button1">
2620
- #
2621
- # submit("VALUE" => "ok", "NAME" => "button1", "ID" => "foo")
2622
- # # <INPUT TYPE="submit" VALUE="ok" NAME="button1" ID="foo">
2623
- #
2624
- # source://cgi//lib/cgi/html.rb#750
2625
- def submit(value = T.unsafe(nil), name = T.unsafe(nil)); end
2626
-
2627
- # Generate a text field Input element, as a String.
2628
- #
2629
- # +name+ is the name of the input field. +value+ is its initial
2630
- # value. +size+ is the size of the input area. +maxlength+
2631
- # is the maximum length of input accepted.
2632
- #
2633
- # Alternatively, the attributes can be specified as a hash.
2634
- #
2635
- # text_field("name")
2636
- # # <INPUT TYPE="text" NAME="name" SIZE="40">
2637
- #
2638
- # text_field("name", "value")
2639
- # # <INPUT TYPE="text" NAME="name" VALUE="value" SIZE="40">
2640
- #
2641
- # text_field("name", "value", 80)
2642
- # # <INPUT TYPE="text" NAME="name" VALUE="value" SIZE="80">
2643
- #
2644
- # text_field("name", "value", 80, 200)
2645
- # # <INPUT TYPE="text" NAME="name" VALUE="value" SIZE="80" MAXLENGTH="200">
2646
- #
2647
- # text_field("NAME" => "name", "VALUE" => "value")
2648
- # # <INPUT TYPE="text" NAME="name" VALUE="value">
2649
- #
2650
- # source://cgi//lib/cgi/html.rb#782
2651
- def text_field(name = T.unsafe(nil), value = T.unsafe(nil), size = T.unsafe(nil), maxlength = T.unsafe(nil)); end
2652
-
2653
- # Generate a TextArea element, as a String.
2654
- #
2655
- # +name+ is the name of the textarea. +cols+ is the number of
2656
- # columns and +rows+ is the number of rows in the display.
2657
- #
2658
- # Alternatively, the attributes can be specified as a hash.
2659
- #
2660
- # The body is provided by the passed-in no-argument block
2661
- #
2662
- # textarea("name")
2663
- # # = textarea("NAME" => "name", "COLS" => 70, "ROWS" => 10)
2664
- #
2665
- # textarea("name", 40, 5)
2666
- # # = textarea("NAME" => "name", "COLS" => 40, "ROWS" => 5)
2667
- #
2668
- # source://cgi//lib/cgi/html.rb#808
2669
- def textarea(name = T.unsafe(nil), cols = T.unsafe(nil), rows = T.unsafe(nil)); end
2670
- end
2671
-
2672
- # Mixin module that provides the following:
2673
- #
2674
- # 1. Access to the CGI environment variables as methods. See
2675
- # documentation to the CGI class for a list of these variables. The
2676
- # methods are exposed by removing the leading +HTTP_+ (if it exists) and
2677
- # downcasing the name. For example, +auth_type+ will return the
2678
- # environment variable +AUTH_TYPE+, and +accept+ will return the value
2679
- # for +HTTP_ACCEPT+.
2680
- #
2681
- # 2. Access to cookies, including the cookies attribute.
2682
- #
2683
- # 3. Access to parameters, including the params attribute, and overloading
2684
- # #[] to perform parameter value lookup by key.
2685
- #
2686
- # 4. The initialize_query method, for initializing the above
2687
- # mechanisms, handling multipart forms, and allowing the
2688
- # class to be used in "offline" mode.
2689
- #
2690
- # source://cgi//lib/cgi/core.rb#432
2691
- module CGI::QueryExtension
2692
- # Get the value for the parameter with a given key.
2693
- #
2694
- # If the parameter has multiple values, only the first will be
2695
- # retrieved; use #params to get the array of values.
2696
- #
2697
- # source://cgi//lib/cgi/core.rb#714
2698
- def [](key); end
2699
-
2700
- # source://cgi//lib/cgi/core.rb#448
2701
- def accept; end
2702
-
2703
- # source://cgi//lib/cgi/core.rb#448
2704
- def accept_charset; end
2705
-
2706
- # source://cgi//lib/cgi/core.rb#448
2707
- def accept_encoding; end
2708
-
2709
- # source://cgi//lib/cgi/core.rb#448
2710
- def accept_language; end
2711
-
2712
- # source://cgi//lib/cgi/core.rb#448
2713
- def auth_type; end
2714
-
2715
- # source://cgi//lib/cgi/core.rb#448
2716
- def cache_control; end
2717
-
2718
- # source://cgi//lib/cgi/core.rb#435
2719
- def content_length; end
2720
-
2721
- # source://cgi//lib/cgi/core.rb#448
2722
- def content_type; end
2723
-
2724
- # Get the cookies as a hash of cookie-name=>Cookie pairs.
2725
- #
2726
- # source://cgi//lib/cgi/core.rb#464
2727
- def cookies; end
2728
-
2729
- # Get the cookies as a hash of cookie-name=>Cookie pairs.
2730
- #
2731
- # source://cgi//lib/cgi/core.rb#464
2732
- def cookies=(_arg0); end
2733
-
2734
- # source://cgi//lib/cgi/core.rb#603
2735
- def create_body(is_large); end
2736
-
2737
- # Get the uploaded files as a hash of name=>values pairs
2738
- #
2739
- # source://cgi//lib/cgi/core.rb#471
2740
- def files; end
2741
-
2742
- # source://cgi//lib/cgi/core.rb#448
2743
- def from; end
2744
-
2745
- # source://cgi//lib/cgi/core.rb#448
2746
- def gateway_interface; end
2747
-
2748
- # Returns true if a given query string parameter exists.
2749
- #
2750
- # @return [Boolean]
2751
- #
2752
- # source://cgi//lib/cgi/core.rb#738
2753
- def has_key?(*args); end
2754
-
2755
- # source://cgi//lib/cgi/core.rb#448
2756
- def host; end
2757
-
2758
- # Returns true if a given query string parameter exists.
2759
- #
2760
- # @return [Boolean]
2761
- #
2762
- # source://cgi//lib/cgi/core.rb#738
2763
- def include?(*args); end
2764
-
2765
- # Returns true if a given query string parameter exists.
2766
- #
2767
- # @return [Boolean]
2768
- #
2769
- # source://cgi//lib/cgi/core.rb#738
2770
- def key?(*args); end
2771
-
2772
- # Return all query parameter names as an array of String.
2773
- #
2774
- # source://cgi//lib/cgi/core.rb#733
2775
- def keys(*args); end
2776
-
2777
- # Returns whether the form contained multipart/form-data
2778
- #
2779
- # @return [Boolean]
2780
- #
2781
- # source://cgi//lib/cgi/core.rb#706
2782
- def multipart?; end
2783
-
2784
- # source://cgi//lib/cgi/core.rb#448
2785
- def negotiate; end
2786
-
2787
- # Get the parameters as a hash of name=>values pairs, where
2788
- # values is an Array.
2789
- #
2790
- # source://cgi//lib/cgi/core.rb#468
2791
- def params; end
2792
-
2793
- # Set all the parameters.
2794
- #
2795
- # source://cgi//lib/cgi/core.rb#474
2796
- def params=(hash); end
2797
-
2798
- # source://cgi//lib/cgi/core.rb#448
2799
- def path_info; end
2800
-
2801
- # source://cgi//lib/cgi/core.rb#448
2802
- def path_translated; end
2803
-
2804
- # source://cgi//lib/cgi/core.rb#448
2805
- def pragma; end
2806
-
2807
- # source://cgi//lib/cgi/core.rb#448
2808
- def query_string; end
2809
-
2810
- # Get the raw cookies as a string.
2811
- #
2812
- # source://cgi//lib/cgi/core.rb#454
2813
- def raw_cookie; end
2814
-
2815
- # Get the raw RFC2965 cookies as a string.
2816
- #
2817
- # source://cgi//lib/cgi/core.rb#459
2818
- def raw_cookie2; end
2819
-
2820
- # source://cgi//lib/cgi/core.rb#448
2821
- def referer; end
2822
-
2823
- # source://cgi//lib/cgi/core.rb#448
2824
- def remote_addr; end
2825
-
2826
- # source://cgi//lib/cgi/core.rb#448
2827
- def remote_host; end
2828
-
2829
- # source://cgi//lib/cgi/core.rb#448
2830
- def remote_ident; end
2831
-
2832
- # source://cgi//lib/cgi/core.rb#448
2833
- def remote_user; end
2834
-
2835
- # source://cgi//lib/cgi/core.rb#448
2836
- def request_method; end
2837
-
2838
- # source://cgi//lib/cgi/core.rb#448
2839
- def script_name; end
2840
-
2841
- # source://cgi//lib/cgi/core.rb#448
2842
- def server_name; end
2843
-
2844
- # source://cgi//lib/cgi/core.rb#435
2845
- def server_port; end
2846
-
2847
- # source://cgi//lib/cgi/core.rb#448
2848
- def server_protocol; end
2849
-
2850
- # source://cgi//lib/cgi/core.rb#448
2851
- def server_software; end
2852
-
2853
- # @return [Boolean]
2854
- #
2855
- # source://cgi//lib/cgi/core.rb#619
2856
- def unescape_filename?; end
2857
-
2858
- # source://cgi//lib/cgi/core.rb#448
2859
- def user_agent; end
2860
-
2861
- private
2862
-
2863
- # A wrapper class to use a StringIO object as the body and switch
2864
- # to a TempFile when the passed threshold is passed.
2865
- # Initialize the data from the query.
2866
- #
2867
- # Handles multipart forms (in particular, forms that involve file uploads).
2868
- # Reads query parameters in the @params field, and cookies into @cookies.
2869
- #
2870
- # source://cgi//lib/cgi/core.rb#661
2871
- def initialize_query; end
2872
-
2873
- # offline mode. read name=value pairs on standard input.
2874
- #
2875
- # source://cgi//lib/cgi/core.rb#626
2876
- def read_from_cmdline; end
2877
-
2878
- # Parses multipart form elements according to
2879
- # http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2
2880
- #
2881
- # Returns a hash of multipart form parameters with bodies of type StringIO or
2882
- # Tempfile depending on whether the multipart form element exceeds 10 KB
2883
- #
2884
- # params[name => body]
2885
- #
2886
- # source://cgi//lib/cgi/core.rb#488
2887
- def read_multipart(boundary, content_length); end
2888
- end
2889
-
2890
- # Base module for HTML-generation mixins.
2891
- #
2892
- # Provides methods for code generation for tags following
2893
- # the various DTD element types.
2894
- #
2895
- # source://cgi//lib/cgi/html.rb#7
2896
- module CGI::TagMaker
2897
- # Generate code for an empty element.
2898
- #
2899
- # - O EMPTY
2900
- #
2901
- # source://cgi//lib/cgi/html.rb#27
2902
- def nOE_element(element, attributes = T.unsafe(nil)); end
2903
-
2904
- # source://cgi//lib/cgi/html.rb#43
2905
- def nOE_element_def(attributes = T.unsafe(nil), &block); end
2906
-
2907
- # Generate code for an element for which the end (and possibly the
2908
- # start) tag is optional.
2909
- #
2910
- # O O or - O
2911
- #
2912
- # source://cgi//lib/cgi/html.rb#52
2913
- def nO_element(element, attributes = T.unsafe(nil)); end
2914
-
2915
- # source://cgi//lib/cgi/html.rb#61
2916
- def nO_element_def(attributes = T.unsafe(nil), &block); end
2917
-
2918
- # Generate code for an element with required start and end tags.
2919
- #
2920
- # - -
2921
- #
2922
- # source://cgi//lib/cgi/html.rb#12
2923
- def nn_element(element, attributes = T.unsafe(nil)); end
2924
-
2925
- # source://cgi//lib/cgi/html.rb#20
2926
- def nn_element_def(attributes = T.unsafe(nil), &block); end
2927
- end
2928
-
2929
- # source://cgi//lib/cgi/util.rb#3
2930
- module CGI::Util
2931
- # Prettify (indent) an HTML string.
2932
- #
2933
- # +string+ is the HTML string to indent. +shift+ is the indentation
2934
- # unit to use; it defaults to two spaces.
2935
- #
2936
- # print CGI.pretty("<HTML><BODY></BODY></HTML>")
2937
- # # <HTML>
2938
- # # <BODY>
2939
- # # </BODY>
2940
- # # </HTML>
2941
- #
2942
- # print CGI.pretty("<HTML><BODY></BODY></HTML>", "\t")
2943
- # # <HTML>
2944
- # # <BODY>
2945
- # # </BODY>
2946
- # # </HTML>
2947
- #
2948
- # source://cgi//lib/cgi/util.rb#34
2949
- def pretty(string, shift = T.unsafe(nil)); end
2950
-
2951
- # Format a +Time+ object as a String using the format specified by RFC 1123.
2952
- #
2953
- # CGI.rfc1123_date(Time.now)
2954
- # # Sat, 01 Jan 2000 00:00:00 GMT
2955
- #
2956
- # source://cgi//lib/cgi/util.rb#13
2957
- def rfc1123_date(time); end
2958
- end
2959
-
2960
- # source://cgi//lib/cgi.rb#292
2961
- CGI::VERSION = T.let(T.unsafe(nil), String)