89件ヒット
[1-89件を表示]
(0.019秒)
種類
- インスタンスメソッド (36)
- ライブラリ (36)
- 文書 (17)
ライブラリ
-
cgi
/ core (36)
クラス
- CGI (24)
モジュール
-
CGI
:: QueryExtension (12)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (5) -
accept
_ language (12) - header (12)
-
net
/ http (12) - out (12)
- rss (12)
-
ruby 1
. 8 . 2 feature (12)
検索結果
先頭5件
-
cgi (38574.0)
-
CGI プログラムの支援ライブラリです。
...CGI プログラムの支援ライブラリです。
CGI プロトコルの詳細については以下の文書を参照してください。
* https://tools.ietf.org/html/draft-coar-cgi-v11-03
* 3875: The Common Gateway Interface (CGI) Version 1.1
* https://www.w3.org/CGI/
=== 使用例
=......{
require "cgi"
cgi = CGI.new
values = cgi['field_name'] # <== 'field_name' の配列
# 'field_name' が指定されていなかったら、 ""を返す。
fields = cgi.keys # <== field nameの配列
# フォームに 'field_name' というfield nameがあるときに真
cgi.has_key?('......][ruby]{
value = cgi.accept # ENV["HTTP_ACCEPT"]
value = cgi.accept_charset # ENV["HTTP_ACCEPT_CHARSET"]
//}
このような環境変数には以下のものがあります。
* HTTP_ACCEPT
* HTTP_ACCEPT_CHARSET
* HTTP_ACCEPT_ENCODING
* HTTP_ACCEPT_LANGUAGE
* HTTP_CACHE... -
CGI
:: QueryExtension # accept _ language -> String (9117.0) -
ENV['HTTP_ACCEPT_LANGUAGE'] を返します。
...ENV['HTTP_ACCEPT_LANGUAGE'] を返します。... -
CGI
# header(options = "text / html") -> String (9074.0) -
HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。
...HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。
CGI#out を使わずに自力で HTML を出力したい場合などに使います。
このメソッドは文字列エンコーディングを変換しません。
ヘッダのキ......h
送信するコンテンツの長さを指定します。Content-Length ヘッダに対応します。
: language
送信するコンテンツの言語を指定します。Content-Language ヘッダに対応します。
: expires
送信するコンテンツの有効期限を Time のインス......タンスで指定します。
Expires ヘッダに対応します。
: cookie
クッキーとして文字列か CGI::Cookie のインスタンス、またはそれらの配列かハッシュを指定します。
一つ以上の Set-Cookie ヘッダに対応します。
status パラメータ... -
CGI
# out(options = "text / html") { . . . . } (9048.0) -
HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。
...合は文字列エンコーディングを自動変換し、language を "ja"にします。
@param options Hash か文字列で HTTP ヘッダを生成するための情報を指定します。
例:
cgi = CGI.new
cgi.out{ "string" }
# Content-Type: text/html......ing
cgi.out("text/plain"){ "string" }
# Content-Type: text/plain
# Content-Length: 6
#
# string
cgi.out({"nph" => true,
"status" => "OK", # == "200 OK"
"server" => ENV['SERVER_SOFTWARE'],......tml; charset=iso-2022-jp
"language" => "ja",
"expires" => Time.now + (3600 * 24 * 30),
"cookie" => [cookie1, cookie2],
"my_header1" => "my_value",
"my_header2" => "my_value"}){ "string" }
@see CGI#header... -
ruby 1
. 8 . 2 feature (90.0) -
ruby 1.8.2 feature ruby 1.8.2 での ruby 1.8.1 からの変更点です。
...5)
* cgi/session においてクライアントからセッション ID を指定できてしまうバグが
修正されました。
* cgi/session においてセッション情報を保存するファイル名にセッション ID が
使われるバグが修正されました。
* cgi の......ap4r/wiki/Changes-ruby181_ruby182>))
を参照して下さい。
* rss, rdoc, yaml の変更点は収録していません。
=== 日時未詳
: CGI#server_port [lib] [bug]
常に 0 を返すバグが修正されました。
=== 2004-12-19
: OpenSSL::X509::Store#time= [lib] [new]
:......した。((<ruby-dev:24528>))
=== 2004-10-18
: WEBrick::HTTPRequest [lib] [new]
new methods. accept, accept_charset, accept_encoding, accept_language,
content_length and content_type.
: WEBrick::HTTPResponse#content_length= [lib] [new]
: WEBrick::HTTPResponse#content_type= [lib] [new]
: WEBr... -
rss (54.0)
-
RSS を扱うためのライブラリです。
...= "Example Site"
maker.image.url = "http://example.com/logo.png"
end
===== 検索ページの指定
もし,
* http://example.com/search.cgiに
* keywordというパラメタ名で検索できる
* Search Example Siteという名前で
* Search Example Site's all textという説.......textinput.description = "Search Example Site's all text"
maker.textinput.name = "keyword"
maker.textinput.link = "http://example.com/search.cgi"
end
===== XMLスタイルシートの指定
もし,
* http://example.com/index.xslにある
xml-stylesheetを追加したい場合は以......します。
rss = RSS::Maker.make("0.91") do |maker|
maker.channel.language = "ja"
...
end
RSS 1.0など、/rdf:RDF/channel/language要素がないフィードの場
合でも、単に無視したりdc:languageとして扱ったりと適切に処理し
ます。そのため、以下... -
net
/ http (48.0) -
汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は 2616 に基きます。
...TTP.post_form(URI.parse('http://jack:pass@www.example.com/todo.cgi'),
{'from'=>'2005-01-01', 'to'=>'2005-03-31'})
puts res.body
#例3: より細かく制御する
url = URI.parse('http://www.example.com/todo.cgi')
req = Net::HTTP::Post.new(url.path)
req.basic_auth 'jack',......のは、 name0=value0&name1=value1 のようにアンパサンド
(`&') で区切るやりかたです。
この方法は、1866 Hypertext Markup Language - 2.0 で初めて公式に登場し、
HTML 4.01 Specification の 17.13.4 Form content types
でもそのように書かれています。......体参照で用いられることが指摘されており、
CGIやサーバの実装者に対し `&' の代わりに
セミコロン `;' をサポートすることを奨めています。
しかし、実際には `;' を解釈しないCGIやサーバもまだまだ見受けられるため
この... -
NEWS for Ruby 3
. 0 . 0 (30.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...is}[rdoc-label:label-Static+analysis] foundation is
introduced.
* {RBS}[rdoc-label:label-RBS] is introduced. It is a type definition
language for Ruby programs.
* {TypeProf}[rdoc-label:label-TypeProf] is experimentally bundled. It is a
type analysis tool for Ruby prog......g ones only.
* BigDecimal
* Update to BigDecimal 3.0.0
* This version is Ractor compatible.
* Bundler
* Update to Bundler 2.2.3
* CGI
* Update to 0.2.0
* This version is Ractor compatible.
* CSV
* Update to CSV 3.1.9
* Date
* Update to Date 3.1.1
* This ver......is executed in a background thread.
* Reduce the number of locks between Ruby and JIT threads.
== Static analysis
=== RBS
* RBS is a new language for type definition of Ruby programs. It allows writing types of classes and modules with advanced types including union types, overloading, gen...