別のキーワード
種類
- インスタンスメソッド (1176)
- ライブラリ (54)
- 特異メソッド (12)
- クラス (12)
- 文書 (12)
クラス
- CGI (12)
- CSV (96)
-
CSV
:: FieldInfo (12) -
CSV
:: Row (156) -
CSV
:: Table (60) -
Net
:: HTTP (216) -
Net
:: HTTPGenericRequest (24) - OptionParser (156)
-
URI
:: MailTo (12)
モジュール
-
Net
:: HTTPHeader (444)
キーワード
- HTTPRequest (12)
- [] (36)
- []= (48)
-
add
_ field (12) -
basic
_ auth (12) - cgi (12)
-
cgi
/ session (12) - chunked? (12)
-
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type (12) -
content
_ type= (12) - delete (36)
-
delete
_ if (12) - each (24)
-
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) - fetch (36)
- field (12)
-
form
_ data= (12) - get (24)
- get2 (24)
-
get
_ fields (12) - head2 (24)
- header (24)
- header? (12)
-
header
_ convert (36) -
header
_ converters (12) -
header
_ row? (24) - headers (48)
- include? (12)
- index (12)
- key? (12)
-
main
_ type (12) - method (12)
- new (12)
-
on
_ head (12) -
on
_ tail (12) - parse (24)
- parse! (12)
- post (24)
- post2 (24)
-
proxy
_ basic _ auth (12) - range (12)
- range= (24)
-
range
_ length (12) -
request
_ body _ permitted? (12) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
response
_ body _ permitted? (12) -
return
_ headers? (12) -
ruby 1
. 8 . 4 feature (12) -
rubygems
/ package / tar _ header (12) -
send
_ request (12) -
set
_ content _ type (12) -
set
_ form _ data (12) -
set
_ range (36) - shell (6)
-
sub
_ type (12) - summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
summary
_ width (12) -
summary
_ width= (12) -
to
_ a (12) -
type
_ params (12) -
values
_ at (12) -
webrick
/ cgi (12) -
write
_ headers? (12)
検索結果
先頭5件
-
rubygems
/ package / tar _ header (32000.0) -
tar アーカイブの各エントリのヘッダを表すクラスを提供するライブラリです。
tar アーカイブの各エントリのヘッダを表すクラスを提供するライブラリです。 -
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... -
Net
:: HTTP # head2(path , header = nil) -> Net :: HTTPResponse (6228.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 # head2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (6228.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 (6228.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 (6228.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... -
CGI
# header(options = "text / html") -> String (6118.0) -
HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。
...字列で HTTP ヘッダを生成するための情報を指定します。
例:
header
# Content-Type: text/html
header("text/plain")
# Content-Type: text/plain
header({"nph" => true,
"status" => "OK", # == "200 OK"......e1, cookie2],
"my_header1" => "my_value",
"my_header2" => "my_value"})
例:
cgi = CGI.new('html3')
print cgi.header({"charset" => "shift_jis", "status" => "OK"})
print "<html><head><title>TITLE</title></head>\r\n"
print "<body>BODY</... -
OptionParser
# on _ head(*arg , &block) -> self (6113.0) -
オプションを取り扱うためのブロックを自身の持つリストの最初に登録します。
...@param arg 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... -
CSV
# header _ convert {|field , field _ info| . . . } (6112.0) -
CSV#convert に似ていますが、ヘッダ行用のメソッドです。
...定][ruby]{
require "csv"
csv = 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_c......onvert do |field|
field.to_sym
end
csv.first.headers # => [:header1, :header2]
//}
@see CSV#header_converters, CSV#convert...