ライブラリ
-
cgi
/ core (22) - csv (242)
- mkmf (374)
-
net
/ http (913) -
net
/ pop (11) - optparse (143)
-
rubygems
/ package / tar _ header (187) -
rubygems
/ package / tar _ reader / entry (11) -
rubygems
/ remote _ fetcher (33) - shell (30)
-
shell
/ command-processor (42) -
shell
/ filter (42) - uri (11)
-
webrick
/ httprequest (22) -
webrick
/ httpresponse (11) -
webrick
/ httpservlet / abstract (77) -
webrick
/ httputils (11)
クラス
- CGI (22)
- CSV (77)
-
CSV
:: FieldInfo (22) -
CSV
:: Row (99) -
CSV
:: Table (44) -
Gem
:: Package :: TarHeader (187) -
Gem
:: Package :: TarReader :: Entry (11) -
Gem
:: RemoteFetcher (33) -
Net
:: HTTP (407) -
Net
:: HTTPGenericRequest (22) -
Net
:: HTTPResponse (33) -
Net
:: POPMail (11) - OptionParser (143)
- Shell (30)
-
Shell
:: CommandProcessor (42) -
Shell
:: Filter (42) -
URI
:: MailTo (11) -
WEBrick
:: HTTPRequest (22) -
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPServlet :: AbstractServlet (77) -
WEBrick
:: HTTPUtils :: FormData (11)
モジュール
- Kernel (374)
-
Net
:: HTTPHeader (451)
キーワード
- < (6)
- [] (55)
- []= (33)
-
add
_ field (11) -
basic
_ auth (11) -
canonical
_ each (11) - cat (6)
-
check
_ signedness (22) -
check
_ sizeof (22) - checksum (11)
- chunked? (11)
-
content
_ length (11) -
content
_ length= (11) -
content
_ range (11) -
content
_ type (11) -
content
_ type= (11) -
convertible
_ int (22) - copy (11)
-
create
_ header (11) - delete (44)
- devmajor (11)
- devminor (11)
-
do
_ DELETE (11) -
do
_ GET (11) -
do
_ HEAD (11) -
do
_ OPTIONS (11) -
do
_ POST (11) -
do
_ PUT (11) - each (11)
-
each
_ capitalized (11) -
each
_ capitalized _ name (11) -
each
_ header (11) -
each
_ key (11) -
each
_ name (11) -
each
_ value (11) - echo (18)
- fetch (33)
-
fetch
_ path (11) - field (11)
- fields (11)
-
find
_ header (11) -
find
_ type (22) -
form
_ data= (11) - get (22)
- get2 (22)
-
get
_ fields (11) - gid (11)
- glob (18)
- gname (11)
-
have
_ func (22) -
have
_ header (22) -
have
_ library (22) -
have
_ macro (22) -
have
_ struct _ member (22) -
have
_ type (22) -
have
_ var (22) - head2 (22)
- header (66)
- header= (11)
- header? (11)
-
header
_ convert (33) -
header
_ converters (11) - headers (22)
- include? (11)
- index (11)
- key? (11)
- length (11)
- linkname (11)
- lock (11)
- magic (11)
-
main
_ type (11) - method (11)
- mkcol (11)
- mode (11)
- move (11)
- mtime (11)
- name (11)
-
on
_ head (11) -
on
_ tail (11) -
open
_ uri _ or _ path (11) - out (29)
- parse (22)
- parse! (11)
- patch (22)
- post (22)
- post2 (22)
- prefix (11)
- propfind (11)
- proppatch (11)
-
proxy
_ basic _ auth (11) - put (11)
- put2 (22)
- range (11)
- range= (22)
-
range
_ length (11) -
raw
_ header (11) -
reader
_ header (11) - request (33)
-
request
_ body _ permitted? (11) -
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
request
_ put (22) - response (11)
-
response
_ body _ permitted? (11) -
return
_ headers? (11) -
send
_ request (11) - service (11)
-
set
_ content _ type (11) -
set
_ form _ data (11) -
set
_ range (33) - size (22)
-
sub
_ type (11) - summarize (22)
-
summary
_ indent (11) -
summary
_ indent= (11) -
summary
_ width (11) -
summary
_ width= (11) - system (18)
- tee (6)
-
to
_ a (11) -
to
_ s (11) - trace (11)
- transact (18)
-
try
_ constant (22) -
try
_ func (22) -
try
_ static _ assert (22) -
try
_ type (22) -
try
_ var (22) -
type
_ params (11) - typeflag (11)
- uid (11)
- uname (11)
- unlock (11)
-
values
_ at (22) - version (11)
-
write
_ headers? (11) - | (6)
検索結果
先頭5件
- Net
:: HTTP # head(path , header = nil) -> Net :: HTTPResponse - Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil - Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil - Kernel
# find _ header(header , *paths) -> bool - Net
:: HTTPHeader # content _ length -> Integer|nil
-
Net
:: HTTP # head(path , header = nil) -> Net :: HTTPResponse (21314.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse のインスタンスを返します。
...エンティティのヘッダのみを取得します。
Net::HTTPResponse のインスタンスを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という
形のハッ......m header リクエストの HTTP ヘッダをハッシュで指定します。
1.1 互換モードの場合は、レスポンスに応じて例外が発生します。
//emlist[例][ruby]{
require 'net/http'
response = nil
Net::HTTP.start('some.www.server', 80) {|http|
response = http.head('/in......dex.html')
}
p response['content-type']
//}
@see Net::HTTP#request_head... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (15501.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
...Returns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_O......F_', followed by the +type+
name, followed by '=X' where 'X' is positive integer if the +type+ is
unsigned, or negative integer if the +type+ is signed.
For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocesso......r macro would be passed to the
compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is
done.... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil (15501.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
...Returns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_O......F_', followed by the +type+
name, followed by '=X' where 'X' is positive integer if the +type+ is
unsigned, or negative integer if the +type+ is signed.
For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGNEDNESS_OF_SIZE_T=+1 preprocesso......r macro would be passed to the
compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is
done.... -
Kernel
# find _ header(header , *paths) -> bool (12301.0) -
与えられた paths から header を検索し、見つかった場合は真を返します。 そうでない場合は偽を返します。
... header を検索し、見つかった場合は真を返します。
そうでない場合は偽を返します。
ヘッダが見つかったディレクトリをコンパイラに渡すコマンドラインオプショ
ンに追加します(-I オプションを経由します)。
@param header... -
Net
:: HTTPHeader # content _ length -> Integer|nil (12301.0) -
Content-Length: ヘッダフィールドの表している値を整数で返します。
...Content-Length: ヘッダフィールドの表している値を整数で返します。
ヘッダが設定されていない場合には nil を返します。
@raise Net::HTTPHeaderSyntaxError フィールドの値が不正である場合に
発生します。......//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_length # => nil
req.content_length = 10
req.content_length # => 10
//}... -
OptionParser
# on _ head(*arg , &block) -> self (12208.0) -
オプションを取り扱うためのブロックを自身の持つリストの最初に登録します。
...OptionParser#on と同様です。
@param block OptionParser#on と同様です。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
puts opts.help
# => Usage: test [options]
#......-i, --init
# -u, --update
# -h, --help
//}
@see OptionParser#on, OptionParser#on_tail... -
CSV
# header _ convert {|field , field _ info| . . . } (12201.0) -
CSV#convert に似ていますが、ヘッダ行用のメソッドです。
...nvert に似ていますが、ヘッダ行用のメソッドです。
このメソッドはヘッダ行を読み込む前に呼び出さなければなりません。
@param name 変換器の名前を指定します。
//emlist[例 name を指定][ruby]{
require "csv"
csv = CSV.new("header1,head......er2\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| . . . } (12201.0) -
CSV#convert に似ていますが、ヘッダ行用のメソッドです。
...nvert に似ていますが、ヘッダ行用のメソッドです。
このメソッドはヘッダ行を読み込む前に呼び出さなければなりません。
@param name 変換器の名前を指定します。
//emlist[例 name を指定][ruby]{
require "csv"
csv = CSV.new("header1,head......er2\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(name) (12201.0) -
CSV#convert に似ていますが、ヘッダ行用のメソッドです。
...nvert に似ていますが、ヘッダ行用のメソッドです。
このメソッドはヘッダ行を読み込む前に呼び出さなければなりません。
@param name 変換器の名前を指定します。
//emlist[例 name を指定][ruby]{
require "csv"
csv = CSV.new("header1,head......er2\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 _ converters -> Array (12201.0) -
現在有効なヘッダ用変換器のリストを返します。
...ェクトを返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("HEADER1,HEADER2\nrow1_1,row1_2", headers: true, header_converters: CSV::HeaderConverters.keys)
csv.header_converters # => [:downcase, :symbol]
csv.read.to_a # => header2], ["row1_1", "row1_2"
//}
@see CSV.new...