444件ヒット
[1-100件を表示]
(0.046秒)
別のキーワード
種類
- インスタンスメソッド (348)
- 文書 (38)
- 特異メソッド (34)
- ライブラリ (24)
ライブラリ
- ビルトイン (46)
-
cgi
/ html (48) -
net
/ http (96) -
webrick
/ cgi (12) -
webrick
/ httprequest (12) -
webrick
/ httpservlet / abstract (84) -
webrick
/ httpservlet / cgihandler (24) -
webrick
/ httpservlet / erbhandler (24) -
webrick
/ httpservlet / filehandler (12) -
webrick
/ httpservlet / prochandler (24)
クラス
-
Net
:: HTTP (24) -
Net
:: HTTPGenericRequest (72) -
RubyVM
:: InstructionSequence (36) -
WEBrick
:: CGI (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (84) -
WEBrick
:: HTTPServlet :: CGIHandler (24) -
WEBrick
:: HTTPServlet :: ERBHandler (24) -
WEBrick
:: HTTPServlet :: FileHandler (12) -
WEBrick
:: HTTPServlet :: ProcHandler (24)
モジュール
-
CGI
:: HtmlExtension (48) -
RubyVM
:: AbstractSyntaxTree (10)
キーワード
-
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 3
. 0 . 0 (5) - body (12)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - disasm (12)
- disassemble (12)
-
do
_ DELETE (12) -
do
_ GET (48) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (60) -
do
_ PUT (12) - form (24)
-
multipart
_ form (24) -
net
/ http (12) - of (10)
- patch (12)
-
request
_ body _ permitted? (12) -
request
_ method (12) -
response
_ body _ permitted? (12) -
ruby 1
. 8 . 3 feature (12) - service (24)
-
to
_ a (12) -
webrick
/ cgi (12) - クラス/メソッドの定義 (12)
検索結果
先頭5件
- Net
:: HTTP # post(path , data , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse - WEBrick
:: HTTPServlet :: FileHandler # do _ POST(request , response) -> () - Net
:: HTTPGenericRequest # request _ body _ permitted? -> bool - Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool - Net
:: HTTPGenericRequest # body=(body)
-
Net
:: HTTP # post(path , data , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (18254.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...サーバ上の path にあるエンティティに対し文字列 data を
POST で送ります。
返り値は Net::HTTPResponse のインスタンスです。
ブロックと一緒に呼びだされたときはエンティティボディを少しずつ文字列として
ブロックに与え......ます。このとき戻り値の HTTPResponse オブジェクトは有効な body を
持ちません。
POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlen......by]{
# net/http version 1.1
response, body = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# using block
File.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=rub... -
WEBrick
:: HTTPServlet :: FileHandler # do _ POST(request , response) -> () (9117.0) -
POST リクエストを処理します。
...
POST リクエストを処理します。
@param request クライアントからのリクエストを表す WEBrick::HTTPRequest オブジェクトです。
@param response クライアントへのレスポンスを表す WEBrick::HTTPResponse オブジェクトです。
@raise WEBrick::HTTPSta... -
Net
:: HTTPGenericRequest # request _ body _ permitted? -> bool (6234.0) -
リクエストにエンティティボディを一緒に送ることが許されている HTTP メソッド (POST など)の場合真を返します。
...ッド (POST など)の場合真を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
post.request_body_permitted? # => true
head = Net::HTTP::Head.new(uri.request_uri)
head.request_body_permit... -
Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool (6234.0) -
サーバからのレスポンスにエンティティボディを含むことが許されている HTTP メソッド (GET, POST など)の場合真を返します。
...(GET, POST など)の場合真を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
post.response_body_permitted? # => true
head = Net::HTTP::Head.new(uri.request_uri)
head.response_body_permi... -
Net
:: HTTPGenericRequest # body=(body) (6218.0) -
サーバに送るリクエストのエンティティボディを文字列で設定します。
...。
@param body 設定するボディを文字列で与えます。
//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" # => "Test Post Data"
//}
@see Net::HTTPGenericRequest#body... -
Net
:: HTTPGenericRequest # body _ stream -> object (6130.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.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) (6130.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.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 -> String (6118.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=... -
WEBrick
:: HTTPServlet :: CGIHandler # do _ POST(request , response) -> () (6117.0) -
GET, POST リクエストを処理します。
...GET, POST リクエストを処理します。
@param request WEBrick::HTTPRequest のインスタンスを指定します。
@param response WEBrick::HTTPResponse のインスタンスを指定します。...