ライブラリ
- ビルトイン (84)
-
cgi
/ core (36) -
cgi
/ html (24) -
net
/ http (372) -
net
/ imap (696) -
rdoc
/ markup (12) -
rdoc
/ parser (12) -
rdoc
/ parser / c (12) -
rdoc
/ parser / ruby (12) -
rdoc
/ parser / simple (12) -
webrick
/ httpauth (12) -
webrick
/ httpauth / basicauth (12) -
webrick
/ httpproxy (12) -
webrick
/ httpresponse (24) -
webrick
/ httpservlet / abstract (72)
クラス
- CGI (24)
- Class (12)
- Data (6)
-
Net
:: HTTP (324) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (24) -
Net
:: IMAP (12) -
Net
:: IMAP :: BodyTypeBasic (156) -
Net
:: IMAP :: BodyTypeMessage (192) -
Net
:: IMAP :: BodyTypeMultipart (108) -
Net
:: IMAP :: BodyTypeText (168) -
Net
:: IMAP :: FetchData (12) -
RDoc
:: Parser (12) -
RDoc
:: Parser :: C (12) -
RDoc
:: Parser :: Ruby (12) -
RDoc
:: Parser :: Simple (12) -
RubyVM
:: InstructionSequence (36) -
WEBrick
:: HTTPProxyServer (12) -
WEBrick
:: HTTPResponse (24) -
WEBrick
:: HTTPServlet :: AbstractServlet (72)
モジュール
-
CGI
:: HtmlExtension (24) -
CGI
:: QueryExtension (12) -
RubyVM
:: AbstractSyntaxTree (30) -
WEBrick
:: HTTPAuth (12)
キーワード
- BasicAuth (12)
- BodyTypeBasic (12)
- BodyTypeMessage (12)
- BodyTypeMultipart (12)
- BodyTypeText (12)
- Markup (12)
-
NEWS for Ruby 2
. 5 . 0 (8) - attr (12)
-
basic
_ auth (12) - body= (12)
-
body
_ stream (12) -
body
_ stream= (12) -
cgi
/ session (12) - chunked= (12)
-
clone
_ method (12) -
content
_ id (36) -
create
_ body (12) - define (6)
- description (36)
- disasm (12)
- disassemble (12)
- disposition (48)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) - encoding (36)
- envelope (12)
- extension (48)
- fetch (12)
- get (24)
- get2 (24)
- head2 (24)
- header (12)
- html (24)
- inherited (12)
-
ins
_ methods _ i (12) -
ins
_ methods _ priv _ i (12) -
ins
_ methods _ prot _ i (12) - language (48)
- lines (24)
-
local
_ host= (12) -
local
_ port= (12) - lock (12)
- md5 (36)
-
media
_ subtype (48) -
media
_ type (48) - mkcol (12)
- move (12)
- multipart? (48)
-
net
/ imap (12) - new (48)
- of (22)
- param (48)
- parse (10)
-
parse
_ file (10) -
parser
_ for (12) - parts (12)
- patch (24)
- post (24)
- post2 (24)
- print (12)
- propfind (12)
- proppatch (12)
-
rb
_ call0 (12) -
rb
_ ensure (12) -
rb
_ get _ method _ body (12) -
rdoc
/ parser (12) -
read
_ body (24) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 9 feature (12) -
send
_ request (12) - size (36)
- subtype (48)
- unlock (12)
- クラス/メソッドの定義 (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
検索結果
先頭5件
- Net
:: IMAP :: BodyTypeMessage # body -> Net :: IMAP :: BodyTypeBasic | Net :: IMAP :: BodyTypeMessage | Net :: IMAP :: BodyTypeText | Net :: IMAP :: BodyTypeMultipart - Net
:: HTTPResponse # read _ body {|str| . . . . } -> () - Net
:: HTTPResponse # read _ body(dest=nil) -> String|nil - Net
:: HTTPGenericRequest # body _ stream -> object - Net
:: HTTPGenericRequest # body _ stream=(f)
-
Net
:: IMAP :: BodyTypeMessage # body -> Net :: IMAP :: BodyTypeBasic | Net :: IMAP :: BodyTypeMessage | Net :: IMAP :: BodyTypeText | Net :: IMAP :: BodyTypeMultipart (24901.0) -
ボディを返します。
ボディを返します。 -
Net
:: HTTPResponse # read _ body {|str| . . . . } -> () (12220.0) -
ブロックを与えなかった場合にはエンティティボディを 文字列で返します。 ブロックを与えた場合には エンティティボディを少しずつ取得して順次ブロックに 文字列で与えます。
...ww.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('http://www.example.com/path/to/big.file')
Net::HTTP.start(u......ost, uri.port) do |http|
File.open("/path/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......ボディを文字列として
返します。また一度ブロックを与えてこのメソッドを呼んだ場合には、
次からは Net::ReadAdapter のインスタンスが返ってきますが、
その場合はそのオブジェクトは使わないでください。
dest は obsolete... -
Net
:: HTTPResponse # read _ body(dest=nil) -> String|nil (12220.0) -
ブロックを与えなかった場合にはエンティティボディを 文字列で返します。 ブロックを与えた場合には エンティティボディを少しずつ取得して順次ブロックに 文字列で与えます。
...ww.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('http://www.example.com/path/to/big.file')
Net::HTTP.start(u......ost, uri.port) do |http|
File.open("/path/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......ボディを文字列として
返します。また一度ブロックを与えてこのメソッドを呼んだ場合には、
次からは Net::ReadAdapter のインスタンスが返ってきますが、
その場合はそのオブジェクトは使わないでください。
dest は obsolete... -
Net
:: HTTPGenericRequest # body _ stream -> object (12214.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...定します。
f は read(size) メソッドが定義されている必要があります。
@param f エンティティボディのデータを得るストリームオブジェクトを与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
p......ost = Net::HTTP::Post.new(uri.request_uri)
File.open("/path/to/test", 'rb') do |f|
# 大きなファイルを扱う際にメモリ消費を少なくできる
post.body_stream = f
post["Content-Length"] = f.size
end
post.body_stream # => #<File:/path/to/test (closed)>
//}... -
Net
:: HTTPGenericRequest # body _ stream=(f) (12214.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...定します。
f は read(size) メソッドが定義されている必要があります。
@param f エンティティボディのデータを得るストリームオブジェクトを与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
p......ost = Net::HTTP::Post.new(uri.request_uri)
File.open("/path/to/test", 'rb') do |f|
# 大きなファイルを扱う際にメモリ消費を少なくできる
post.body_stream = f
post["Content-Length"] = f.size
end
post.body_stream # => #<File:/path/to/test (closed)>
//}... -
CGI
:: QueryExtension # create _ body(is _ large) -> StringIO | Tempfile (12201.0) -
-
Net
:: IMAP :: BodyTypeBasic (12000.0) -
text 型(Net::IMAP::BodyTypeText)、 multipart 型(Net::IMAP::BodyTypeMultipart)、 message 型(Net::IMAP::BodyTypeMessage)、 のいずれでもないようなメッセージボディ構造を表すクラスです。
...text 型(Net::IMAP::BodyTypeText)、
multipart 型(Net::IMAP::BodyTypeMultipart)、
message 型(Net::IMAP::BodyTypeMessage)、
のいずれでもないようなメッセージボディ構造を表すクラスです。
添付ファイルなどを表します。
詳しくは MIME のRFC(2045)を参... -
Net
:: IMAP :: BodyTypeMessage (12000.0) -
Content-Type が "message" であるメッセージを表すクラスです。
...Content-Type が "message" であるメッセージを表すクラスです。
メールをメールに添付した場合などに使われます。
詳しくは 2045, 822 を参照してください。... -
Net
:: IMAP :: BodyTypeMultipart (12000.0) -
マルチパートなメッセージを表すクラスです。
マルチパートなメッセージを表すクラスです。
詳しくは MIME のRFC(2045)を参照してください。