420件ヒット
[1-100件を表示]
(0.120秒)
ライブラリ
-
cgi
/ core (24) -
cgi
/ html (24) -
net
/ http (36) -
net
/ imap (312) -
webrick
/ httpresponse (24)
クラス
- CGI (24)
-
Net
:: HTTPGenericRequest (12) -
Net
:: HTTPResponse (24) -
Net
:: IMAP :: BodyTypeBasic (84) -
Net
:: IMAP :: BodyTypeMessage (84) -
Net
:: IMAP :: BodyTypeMultipart (48) -
Net
:: IMAP :: BodyTypeText (84) -
Net
:: IMAP :: FetchData (12) -
WEBrick
:: HTTPResponse (24)
モジュール
-
CGI
:: HtmlExtension (24)
キーワード
- attr (12)
-
content
_ id (36) -
content
_ length (12) -
content
_ length= (12) - description (36)
- encoding (36)
- header (12)
- html (24)
-
media
_ subtype (48) -
media
_ type (48) - param (48)
- print (12)
-
read
_ body (24) - subtype (48)
検索結果
先頭5件
-
Net
:: HTTPGenericRequest # body -> String (18328.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
:: HTTPResponse # read _ body(dest=nil) -> String|nil (6335.0) -
ブロックを与えなかった場合にはエンティティボディを 文字列で返します。 ブロックを与えた場合には エンティティボディを少しずつ取得して順次ブロックに 文字列で与えます。
...結果取得][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.read_body[0..10] # => "<!doctype h"
//}
//emlist[例2 ブロックを与えて大きいファイルを取得][ruby]{
require 'net/http'
uri = URI.parse('htt......h/to/big.file", "w") do |f|
# Net::HTTP#request_get と Net::HTTPResponse#read_body で少しずつ読み書き。メモリ消費が少ない。
http.request_get(uri.path) do |response|
response.read_body do |s|
f.write(s)
end
end
end
end
//}
一度ブロックを......い。
dest は obsolete です。使わないでください。
dest を指定した場合には
ボディを少しずつ取得して順次
「dest << ボディの断片」を実行します。
@param dest obsoleteな引数です。利用しないでください。
@see Net::HTTP#request_get... -
Net
:: HTTPResponse # read _ body {|str| . . . . } -> () (6135.0) -
ブロックを与えなかった場合にはエンティティボディを 文字列で返します。 ブロックを与えた場合には エンティティボディを少しずつ取得して順次ブロックに 文字列で与えます。
...結果取得][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.read_body[0..10] # => "<!doctype h"
//}
//emlist[例2 ブロックを与えて大きいファイルを取得][ruby]{
require 'net/http'
uri = URI.parse('htt......h/to/big.file", "w") do |f|
# Net::HTTP#request_get と Net::HTTPResponse#read_body で少しずつ読み書き。メモリ消費が少ない。
http.request_get(uri.path) do |response|
response.read_body do |s|
f.write(s)
end
end
end
end
//}
一度ブロックを......い。
dest は obsolete です。使わないでください。
dest を指定した場合には
ボディを少しずつ取得して順次
「dest << ボディの断片」を実行します。
@param dest obsoleteな引数です。利用しないでください。
@see Net::HTTP#request_get... -
Net
:: IMAP :: BodyTypeBasic # param -> { String => String } | nil (3411.0) -
MIME のボディパラメータをハッシュテーブルで返します。
...MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045... -
Net
:: IMAP :: BodyTypeMessage # param -> { String => String } | nil (3411.0) -
MIME のボディパラメータをハッシュテーブルで返します。
...MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045... -
Net
:: IMAP :: BodyTypeMultipart # param -> { String => String } (3411.0) -
MIME のボディパラメータをハッシュテーブルで返します。
...MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045... -
Net
:: IMAP :: BodyTypeText # param -> { String => String } | nil (3411.0) -
MIME のボディパラメータをハッシュテーブルで返します。
...MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045... -
Net
:: IMAP :: BodyTypeBasic # media _ subtype -> String (3211.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
...MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeBasic#media_type... -
Net
:: IMAP :: BodyTypeBasic # subtype -> String (3211.0) -
MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。
...MIME のメディアタイプのサブタイプを返します。
media_subtype は obsolete です。
@see Net::IMAP::BodyTypeBasic#media_type...