72件ヒット
[1-72件を表示]
(0.015秒)
種類
- インスタンスメソッド (60)
- 定数 (12)
クラス
- CGI (48)
モジュール
-
CGI
:: QueryExtension (24)
キーワード
-
MAX
_ MULTIPART _ LENGTH (12) -
content
_ length (12) -
content
_ type (12) - header (12)
- out (12)
- print (12)
検索結果
先頭5件
-
CGI
:: QueryExtension # content _ length -> Integer (6119.0) -
ENV['CONTENT_LENGTH'] を返します。
...ENV['CONTENT_LENGTH'] を返します。... -
CGI
:: QueryExtension # content _ type -> String (6119.0) -
ENV['CONTENT_TYPE'] を返します。
...ENV['CONTENT_TYPE'] を返します。... -
CGI
# header(options = "text / html") -> String (56.0) -
HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。
...ません。
ヘッダのキーとしては以下が利用可能です。
: type
Content-Type ヘッダです。デフォルトは "text/html" です。
: charset
ボディのキャラクタセットを Content-Type ヘッダに追加します。
: nph
真偽値を指定します。真なら......対応します。
: length
送信するコンテンツの長さを指定します。Content-Length ヘッダに対応します。
: language
送信するコンテンツの言語を指定します。Content-Language ヘッダに対応します。
: expires
送信するコンテンツの有効......。
status パラメータには以下の文字列が使えます。
"OK" --> "200 OK"
"PARTIAL_CONTENT" --> "206 Partial Content"
"MULTIPLE_CHOICES" --> "300 Multiple Choices"
"MOVED" --> "301 Moved Permanently"
"REDIRE... -
CGI
# out(options = "text / html") { . . . . } (32.0) -
HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。
...cgi = CGI.new
cgi.out{ "string" }
# Content-Type: text/html
# Content-Length: 6
#
# string
cgi.out("text/plain"){ "string" }
# Content-Type: text/plain
# Content-Length: 6
#
# string
cgi.ou......"connection" => "close",
"type" => "text/html",
"charset" => "iso-2022-jp",
# Content-Type: text/html; charset=iso-2022-jp
"language" => "ja",
"expires" => Time.now + (3600 * 24 * 30),... -
CGI
:: MAX _ MULTIPART _ LENGTH -> Integer (18.0) -
Maximum content length of multipart data
...Maximum content length of multipart data... -
CGI
# print(*strings) (8.0) -
@todo
...@todo
引数の文字列を標準出力に出力します。
cgi.print は $DEFAULT_OUTPUT.print と等価です。
例:
cgi = CGI.new
cgi.print "This line is a part of content body.\r\n"...