るりまサーチ

最速Rubyリファレンスマニュアル検索!
72件ヒット [1-72件を表示] (0.015秒)
トップページ > クエリ:content[x] > ライブラリ:cgi/core[x]

別のキーワード

  1. rss content
  2. rss content=
  3. net/imap content_id
  4. item content
  5. item content=

クラス

モジュール

キーワード

検索結果

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"...