種類
- インスタンスメソッド (1080)
- ライブラリ (30)
- モジュール関数 (24)
- 文書 (12)
- 特異メソッド (6)
ライブラリ
- csv (144)
- mkmf (72)
-
net
/ http (540) - open3 (24)
- optparse (156)
-
rubygems
/ remote _ fetcher (24) - shell (48)
-
shell
/ command-processor (42) -
shell
/ filter (48) -
webrick
/ httputils (12)
クラス
- CSV (60)
-
CSV
:: FieldInfo (12) -
CSV
:: Row (60) -
CSV
:: Table (12) -
Gem
:: RemoteFetcher (24) -
Net
:: HTTP (300) - OptionParser (156)
- Shell (48)
-
Shell
:: CommandProcessor (42) -
Shell
:: Filter (48) -
WEBrick
:: HTTPUtils :: FormData (12)
モジュール
- Kernel (72)
-
Net
:: HTTPHeader (240) - Open3 (24)
キーワード
- [] (48)
-
canonical
_ each (12) - cat (18)
- cgi (12)
-
check
_ signedness (24) -
check
_ sizeof (24) -
content
_ length (12) -
content
_ range (12) -
content
_ type (12) - delete (24)
-
delete
_ if (12) - each (24)
-
each
_ capitalized (12) -
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) - echo (18)
- fetch (36)
-
fetch
_ path (12) - field (12)
- get (24)
- get2 (24)
- glob (18)
- head2 (24)
- header (12)
-
header
_ convert (36) - headers (12)
-
install
_ system _ commands (6) -
main
_ type (12) -
on
_ head (12) -
on
_ tail (12) -
open
_ uri _ or _ path (12) - out (18)
- parse (24)
- parse! (12)
- patch (24)
-
pipeline
_ r (24) - post (24)
- post2 (24)
- put2 (24)
- range (12)
-
range
_ length (12) - request (24)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) -
ruby 1
. 8 . 4 feature (12) - shell (6)
-
sub
_ type (12) - summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
summary
_ width (12) -
summary
_ width= (12) - system (18)
- tee (18)
-
to
_ a (12) - transact (18)
-
try
_ constant (24) -
webrick
/ cgi (12) -
write
_ headers? (12)
検索結果
先頭5件
-
Net
:: HTTP # head(path , header = nil) -> Net :: HTTPResponse (18219.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse のインスタンスを返します。
...のみを取得します。
Net::HTTPResponse のインスタンスを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッシュでなければいけま......ram header リクエストの HTTP ヘッダをハッシュで指定します。
1.1 互換モードの場合は、レスポンスに応じて例外が発生します。
//emlist[例][ruby]{
require 'net/http'
response = nil
Net::HTTP.start('some.www.server', 80) {|http|
response = http.head('/......index.html')
}
p response['content-type']
//}
@see Net::HTTP#request_head... -
Shell
:: Filter # |(filter) -> object (18130.0) -
パイプ結合を filter に対して行います。
...ll.def_system_command("tail")
Shell.def_system_command("head")
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
i = 1
while i <= (cat("/etc/passwd") | wc("-l")).to_s.chomp.to_i
puts (cat("/etc/passwd") | head("-n #{i}") | tail("-n 1")).to_s
i += 1
end
}... -
Net
:: HTTP # head2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (6324.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse オブジェクトを返します。
...ダのみを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッシュでなければいけま......文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
head2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
response = http.request_head('/index.html')
p response['content-type']
//}
@see Net::HTTP#head... -
Net
:: HTTP # request _ head(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (6324.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse オブジェクトを返します。
...ダのみを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッシュでなければいけま......文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
head2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
response = http.request_head('/index.html')
p response['content-type']
//}
@see Net::HTTP#head... -
CSV
# headers -> Array | true | nil (6302.0) -
nil を返した場合は、ヘッダは使用されません。 真を返した場合は、ヘッダを使用するが、まだ読み込まれていません。 配列を返した場合は、ヘッダは既に読み込まれています。
...は既に読み込まれています。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2")
csv.headers # => nil
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true)
csv.headers # => true
csv.read
csv.headers # =>["header1", "header2"]
//}
@see CSV.new... -
Net
:: HTTP # head2(path , header = nil) -> Net :: HTTPResponse (6224.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse オブジェクトを返します。
...ダのみを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッシュでなければいけま......文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
head2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
response = http.request_head('/index.html')
p response['content-type']
//}
@see Net::HTTP#head... -
Net
:: HTTP # request _ head(path , header = nil) -> Net :: HTTPResponse (6224.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse オブジェクトを返します。
...ダのみを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッシュでなければいけま......文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
head2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
response = http.request_head('/index.html')
p response['content-type']
//}
@see Net::HTTP#head... -
CSV
# header _ convert {|field , field _ info| . . . } (6214.0) -
CSV#convert に似ていますが、ヘッダ行用のメソッドです。
...v = CSV.new("header1,header2\nrow1_1,row1_2", headers: true)
csv.header_convert(:symbol)
csv.first.headers # => [:header1, :header2]
//}
//emlist[例 ブロックを指定][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true)
csv.header_convert do |field|
field.to_......sym
end
csv.first.headers # => [:header1, :header2]
//}
@see CSV#header_converters, CSV#convert... -
CSV
# header _ convert {|field| . . . } (6214.0) -
CSV#convert に似ていますが、ヘッダ行用のメソッドです。
...v = CSV.new("header1,header2\nrow1_1,row1_2", headers: true)
csv.header_convert(:symbol)
csv.first.headers # => [:header1, :header2]
//}
//emlist[例 ブロックを指定][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true)
csv.header_convert do |field|
field.to_......sym
end
csv.first.headers # => [:header1, :header2]
//}
@see CSV#header_converters, CSV#convert...