2238件ヒット
[201-300件を表示]
(0.134秒)
ライブラリ
-
cgi
/ core (24) - csv (618)
- mkmf (288)
-
net
/ http (924) -
net
/ imap (24) -
net
/ pop (12) - psych (24)
-
rubygems
/ package / tar _ header (228) -
rubygems
/ package / tar _ reader / entry (12) - un (12)
- uri (12)
-
webrick
/ httprequest (36) -
webrick
/ httpresponse (12) -
webrick
/ httputils (12)
クラス
- CGI (24)
- CSV (216)
-
CSV
:: FieldInfo (12) -
CSV
:: Row (150) -
CSV
:: Table (240) -
Gem
:: Package :: TarHeader (228) -
Gem
:: Package :: TarReader :: Entry (12) -
Net
:: HTTP (420) -
Net
:: HTTPResponse (36) -
Net
:: IMAP (12) -
Net
:: IMAP :: FetchData (12) -
Net
:: POPMail (12) -
Psych
:: Nodes :: Node (24) -
URI
:: MailTo (12) -
WEBrick
:: HTTPRequest (36) -
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPUtils :: FormData (12)
モジュール
- Kernel (300)
-
Net
:: HTTPHeader (468)
キーワード
- << (12)
- == (36)
- [] (84)
- []= (12)
-
add
_ field (12) - attr (12)
-
basic
_ auth (12) -
by
_ col (12) -
by
_ col! (12) -
by
_ col _ or _ row (12) -
by
_ col _ or _ row! (12) -
by
_ row (12) -
by
_ row! (12) -
canonical
_ each (12) -
check
_ signedness (24) -
check
_ sizeof (24) - checksum (12)
- chunked? (12)
-
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type (12) -
content
_ type= (12) - convert (36)
- converters (12)
- copy (12)
-
create
_ header (12) - deconstruct (3)
-
deconstruct
_ keys (3) - delete (48)
-
delete
_ if (36) - devmajor (12)
- devminor (12)
- each (36)
-
each
_ capitalized (12) -
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) - empty? (12)
- fetch (48)
- field (12)
- field? (12)
-
find
_ header (12) -
find
_ type (24) -
force
_ quotes? (12) -
form
_ data= (12) - get (24)
- get2 (24)
-
get
_ fields (12) - gets (12)
- gid (12)
- gname (12)
-
have
_ macro (24) -
have
_ struct _ member (24) -
have
_ type (24) - head (12)
- head2 (24)
-
header
_ converters (12) - headers (36)
- index (12)
- inspect (24)
- key? (12)
- length (12)
- lineno (12)
- linkname (12)
- lock (12)
- magic (12)
-
main
_ type (12) - method (12)
- mkcol (12)
- mkmf (12)
- mode (24)
- move (12)
- mtime (12)
- name (12)
- out (12)
- patch (24)
- post (24)
- post2 (24)
- prefix (12)
- propfind (12)
- proppatch (12)
-
proxy
_ basic _ auth (12) - put (12)
- put2 (24)
-
quote
_ char (12) - range (12)
-
range
_ length (12) -
raw
_ header (12) - read (12)
-
reader
_ header (12) - readline (12)
- readlines (12)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) - response (12)
-
return
_ headers? (12) -
row
_ sep (12) -
send
_ request (12) -
set
_ content _ type (12) -
set
_ form _ data (12) -
set
_ range (36) - shift (12)
- size (24)
-
sub
_ type (12) -
to
_ a (12) -
to
_ csv (12) -
to
_ hash (12) -
to
_ s (24) -
to
_ yaml (12) - trace (12)
-
try
_ constant (24) -
try
_ func (24) -
try
_ static _ assert (24) -
try
_ type (24) -
try
_ var (24) -
type
_ params (12) - typeflag (12)
- uid (12)
- uname (12)
- unlock (12)
-
values
_ at (24) - version (12)
-
write
_ headers? (12) - yaml (12)
検索結果
先頭5件
-
Net
:: HTTPHeader # type _ params -> Hash (9261.0) -
Content-Type のパラメータを {"charset" => "iso-2022-jp"} という形の Hash で返します。
...ntent-Type のパラメータを {"charset" => "iso-2022-jp"}
という形の Hash で返します。
Content-Type: ヘッダフィールドが存在しない場合には
空のハッシュを返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.htm......l')
res = Net::HTTP.get_response(uri)
res.type_params # => {"charset"=>"UTF-8"}
//}... -
Net
:: HTTPHeader # set _ form _ data(params , sep = & # 39;&& # 39;) -> () (9243.0) -
HTMLのフォームのデータ params から ヘッダフィールドとボディを設定します。
...HTMLのフォームのデータ params から
ヘッダフィールドとボディを設定します。
ヘッダフィールド Content-Type: には
'application/x-www-form-urlencoded' が設定されます。
@param params HTML のフォームデータの Hash を与えます。
@param sep デ......ist[例 form_data][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.form_data = {"q" => ["ruby", "perl"], "lang" => "en"} # => {"q"=>["ruby", "perl"], "lang"=>"en"}
//}
//emlist[例 set_form_data][ruby]{
require 'net/http'......uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.set_form_data({"q" => "ruby", "lang" => "en"}, ';') # => "application/x-www-form-urlencoded"
//}... -
Net
:: HTTPHeader # fetch(key) -> String (9237.0) -
key ヘッダフィールドを返します。
...ドを返します。
たとえばキー 'content-length' に対しては '2048'
のような文字列が得られます。キーが存在しなければ nil を返します。
該当するキーが登録されてい
ない時には、引数 default が与えられていればその値を、ブ......efault 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引数defaultもブロックも与えられてない時、キーの探索に 失敗すると発生します。
//emlist[例 key のみ指定。key が存在する][ruby]{
require 'net/http'
u......http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}
//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'
begin
req.fetch("content-length")
rescue => e
e # => #<KeyError: key not found: "content-lengt... -
Net
:: HTTPHeader # fetch(key) {|hash| . . . . } -> String (9237.0) -
key ヘッダフィールドを返します。
...ドを返します。
たとえばキー 'content-length' に対しては '2048'
のような文字列が得られます。キーが存在しなければ nil を返します。
該当するキーが登録されてい
ない時には、引数 default が与えられていればその値を、ブ......efault 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引数defaultもブロックも与えられてない時、キーの探索に 失敗すると発生します。
//emlist[例 key のみ指定。key が存在する][ruby]{
require 'net/http'
u......http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}
//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'
begin
req.fetch("content-length")
rescue => e
e # => #<KeyError: key not found: "content-lengt... -
Net
:: HTTPHeader # fetch(key , default) -> String (9237.0) -
key ヘッダフィールドを返します。
...ドを返します。
たとえばキー 'content-length' に対しては '2048'
のような文字列が得られます。キーが存在しなければ nil を返します。
該当するキーが登録されてい
ない時には、引数 default が与えられていればその値を、ブ......efault 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引数defaultもブロックも与えられてない時、キーの探索に 失敗すると発生します。
//emlist[例 key のみ指定。key が存在する][ruby]{
require 'net/http'
u......http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}
//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'
begin
req.fetch("content-length")
rescue => e
e # => #<KeyError: key not found: "content-lengt... -
Net
:: HTTPHeader # content _ type -> String|nil (9235.0) -
"text/html" のような Content-Type を表す 文字列を返します。
..."text/html" のような Content-Type を表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/comments.cgi?post=comment')
req = Net::HTTP::Post.......new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data'
req.content_type # => "multipart/form-data"
//}... -
Net
:: HTTPHeader # range _ length -> Integer|nil (9235.0) -
Content-Range: ヘッダフィールドの表している長さを整数で返します。
...Content-Range: ヘッダフィールドの表している長さを整数で返します。
ヘッダが設定されていない場合には nil を返します。
@raise Net::HTTPHeaderSyntaxError Content-Range: ヘッダフィールド
の値が不正である......発生します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req['Content-Range'] = "bytes 1-500/1000"
req.range_length # => 500
//}... -
Net
:: HTTPHeader # content _ range -> Range|nil (9229.0) -
Content-Range: ヘッダフィールドの値を Range で返します。 Range の表わす長さは Net::HTTPHeader#range_length で得られます。
...Content-Range: ヘッダフィールドの値を Range で返します。
Range の表わす長さは Net::HTTPHeader#range_length で得られます。
ヘッダが設定されていない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.exa......mple.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_range # => nil
req['Content-Range'] = "bytes 0-499/1234"
req.content_range # => 0..499
//}... -
CSV
:: Table # headers -> Array (9225.0) -
自身のヘッダ行を返します。
...自身のヘッダ行を返します。
テーブルが空である場合は空の配列を返します。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
table = CSV::Table.new([row])
table.headers # => ["header1", "header2"]
//}...