別のキーワード
種類
- インスタンスメソッド (121)
- 特異メソッド (33)
- 文書 (22)
ライブラリ
- ビルトイン (33)
-
cgi
/ core (22) -
cgi
/ html (22) -
net
/ http (22) -
net
/ imap (33) -
webrick
/ httpresponse (11) -
webrick
/ httpservlet / abstract (11)
クラス
- CGI (11)
-
Net
:: HTTPGenericRequest (22) -
Net
:: IMAP :: BodyTypeBasic (11) -
Net
:: IMAP :: BodyTypeMessage (11) -
Net
:: IMAP :: BodyTypeText (11) -
RubyVM
:: InstructionSequence (33) -
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPServlet :: AbstractServlet (11)
モジュール
-
CGI
:: HtmlExtension (22) -
CGI
:: QueryExtension (11)
キーワード
-
body
_ stream (11) -
body
_ stream= (11) -
create
_ body (11) - description (33)
- disasm (11)
- disassemble (11)
-
do
_ OPTIONS (11) - header (11)
- html (22)
- of (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 9 feature (11)
検索結果
先頭5件
-
WEBrick
:: HTTPResponse # body -> String | IO (18308.0) -
クライアントに返す内容(エンティティボディ)を返します。
...クライアントに返す内容(エンティティボディ)を返します。
自身が chunked であっても body の値はチャンク形式ではありません。... -
Net
:: HTTPGenericRequest # body _ stream -> object (12230.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...サーバに送るリクエストのエンティティボディを
IO オブジェクトなどのストリームで設定します。
f は read(size) メソッドが定義されている必要があります。
@param f エンティティボディのデータを得るストリームオブジェ......e.com/index.html')
post = 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) (12230.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...サーバに送るリクエストのエンティティボディを
IO オブジェクトなどのストリームで設定します。
f は read(size) メソッドが定義されている必要があります。
@param f エンティティボディのデータを得るストリームオブジェ......e.com/index.html')
post = 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 (9301.0) -
-
Net
:: IMAP :: BodyTypeBasic # description -> String | nil (9200.0) -
Content-Description の値を文字列で返します。
...Content-Description の値を文字列で返します。
@see 2045... -
Net
:: IMAP :: BodyTypeMessage # description -> String | nil (9200.0) -
Content-Description の値を文字列で返します。
...Content-Description の値を文字列で返します。
@see 2045... -
Net
:: IMAP :: BodyTypeText # description -> String | nil (9200.0) -
Content-Description の値を文字列で返します。
...Content-Description の値を文字列で返します。
@see 2045... -
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (6323.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
... body で指定した Proc、Method オブジェクトを元に
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param body Proc、Method オブジェクトを指定します。
例1:irb で実行した場合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::Instructi......onSequence.of(p)
> # => <RubyVM::InstructionSequence:block in irb_binding@(irb)>
# method
> def foo(bar); puts bar; end
> RubyVM::InstructionSequence.of(method(:foo))
> # => <RubyVM::InstructionSequence:foo@(irb)>
例2: RubyVM::InstructionSequence.compile_file を使用した場合
#......{ str = 'a' + 'b' }
# irb
> require '/tmp/iseq_of.rb'
# hello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
# グローバル proc
> RubyVM::InstructionSequence.of($a_global_proc)
> # => #<RubyVM::InstructionSe... -
RubyVM
:: InstructionSequence . disasm(body) -> String (6224.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
...引数 body で指定したオブジェクトから作成した
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合......# /tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::InstructionSequence.disasm(p)
出力:
== disasm: <RubyVM::InstructionSequence:block in <main>@/tmp/proc.rb>===
== catch table
| catch type: redo st: 0000 ed: 0012 sp: 0000 cont: 0000
| catch type: next st: 0000 ed: 0012 sp: 00......-------------------------------------------------------
local table (size: 2, argc: 0 [opts: 0, rest: -1, post: 0, block: -1] s1)
[ 2] num
0000 trace 1 ( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <i... -
RubyVM
:: InstructionSequence . disassemble(body) -> String (6224.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
...引数 body で指定したオブジェクトから作成した
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合......# /tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::InstructionSequence.disasm(p)
出力:
== disasm: <RubyVM::InstructionSequence:block in <main>@/tmp/proc.rb>===
== catch table
| catch type: redo st: 0000 ed: 0012 sp: 0000 cont: 0000
| catch type: next st: 0000 ed: 0012 sp: 00......-------------------------------------------------------
local table (size: 2, argc: 0 [opts: 0, rest: -1, post: 0, block: -1] s1)
[ 2] num
0000 trace 1 ( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <i...