396件ヒット
[101-200件を表示]
(0.029秒)
ライブラリ
-
cgi
/ core (12) -
net
/ http (156) - optparse (24)
-
rexml
/ document (12) -
ripper
/ filter (12) -
rubygems
/ requirement (24) - uri (84)
-
webrick
/ httprequest (12) -
webrick
/ https (12)
クラス
- CGI (12)
-
Gem
:: Requirement (24) -
Net
:: HTTPGenericRequest (96) - OptionParser (12)
-
OptionParser
:: ParseError (12) -
REXML
:: Text (12) -
URI
:: FTP (12) -
URI
:: Generic (60) -
URI
:: HTTP (12) -
WEBrick
:: HTTPRequest (24)
モジュール
-
Net
:: HTTPHeader (60)
キーワード
- + (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - Filter (12)
- body (12)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - each (12)
-
each
_ header (12) -
each
_ value (12) - environment (12)
-
form
_ data= (12) - merge (12)
- method (12)
-
net
/ http (12) - new (48)
- opaque (12)
-
parse
_ string (12) - path (12)
- query (12)
-
request
_ body _ permitted? (12) -
request
_ uri (12) -
response
_ body _ permitted? (12) -
ruby 1
. 6 feature (12) -
set
_ form _ data (12) -
set
_ option (12) -
unparsed
_ uri (12)
検索結果
先頭5件
-
URI
:: Generic # query -> String | nil (6106.0) -
自身の query を文字列で返します。設定されていない場合は nil を返します。
...自身の query を文字列で返します。設定されていない場合は nil を返します。
例:
require 'uri'
p URI.parse('http://example.com/?hoge').query #=> "hoge"... -
OptionParser
:: ParseError # set _ option(opt , eq) -> self (6100.0) -
エラーのあったオプションを指定します。
...します。
eq が真の場合、self が管理するエラーのあったオプションの一覧の先頭を
opt で置き換えます。そうでない場合は先頭に opt を追加します。
@param opt エラーのあったオプションを指定します。
@param eq self が管理す... -
Gem
:: Requirement . new(requirements) -> Gem :: Requirement (3206.0) -
Gem::Requirement のインスタンスを作成します。
...em::Requirement のインスタンスを作成します。
@param requirements 文字列か配列か Gem::Version のインスタンスを指定します。
//emlist[][ruby]{
pp Gem::Requirement.new("~> 3.2.1")
# => Gem::Requirement.new(["~> 3.2.1"])
//}
@see Gem::Requirement#parse, Gem::Requirem... -
OptionParser
# environment(env) -> [String] (3022.0) -
環境変数 env に対して Shellwords.#shellwords を呼 んで配列にしてから parse を行ないます。
...を呼
んで配列にしてから parse を行ないます。
@param env 環境変数名を文字列で与えます。
@raise OptionParser::ParseError パースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク......なります。
//emlist[例][ruby]{
require "optparse"
config = {}
opts = OptionParser.new
opts.on("-r", "--require LIBRARY"){|lib| config[:lib] = lib }
# HOGE_OPT は hoge というプログラム名に対応した名前です
ENV['HOGE_OPT'] = %q{--require lib1 'remain data'}
p opts.environmen... -
Net
:: HTTPGenericRequest # body -> String (3006.0) -
サーバに送るリクエストのエンティティボディを返します。
...クエストのエンティティボディを返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Post.new(uri.request_uri)
req.body = "Test Post Data"
req.body # => "Test Post Data"
//}
@see Net::HTTPGenericRequest#body=... -
Net
:: HTTPGenericRequest # body=(body) (3006.0) -
サーバに送るリクエストのエンティティボディを文字列で設定します。
...。
@param body 設定するボディを文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Post.new(uri.request_uri)
req.body = "Test Post Data" # => "Test Post Data"
//}
@see Net::HTTPGenericRequest#body... -
Net
:: HTTPGenericRequest # body _ stream -> object (3006.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...のデータを得るストリームオブジェクトを与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
File.open("/path/to/test", 'rb') do |f|
# 大きなファイルを扱う際にメモ... -
Net
:: HTTPGenericRequest # body _ stream=(f) (3006.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...のデータを得るストリームオブジェクトを与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
File.open("/path/to/test", 'rb') do |f|
# 大きなファイルを扱う際にメモ... -
Net
:: HTTPGenericRequest # method -> String (3006.0) -
リクエストの HTTP メソッドを文字列で返します。
...リクエストの HTTP メソッドを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Post.new(uri.request_uri)
req.method # => "POST"
req = Net::HTTP::Get.new(uri.request_uri)
req.method # => "GET"
//}...