588件ヒット
[201-300件を表示]
(0.073秒)
ライブラリ
- ビルトイン (36)
-
cgi
/ html (96) -
net
/ http (216) - openssl (12)
-
rubygems
/ specification (24) - strscan (12)
-
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)
クラス
-
Gem
:: Specification (24) - MatchData (24)
-
Net
:: HTTP (120) -
Net
:: HTTPGenericRequest (84) -
OpenSSL
:: SSL :: SSLSocket (12) -
RubyVM
:: InstructionSequence (12) - StringScanner (12)
-
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 (96) -
Net
:: HTTPHeader (12)
キーワード
- body (12)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) -
content
_ type (12) -
do
_ DELETE (12) -
do
_ GET (48) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (60) -
do
_ PUT (12) - form (48)
- method (12)
-
multipart
_ form (48) - patch (24)
- post2 (24)
-
post
_ connection _ check (12) -
post
_ match (24) -
pre
_ match (12) - request (24)
-
request
_ body _ permitted? (12) -
request
_ method (12) -
request
_ post (24) -
response
_ body _ permitted? (12) - service (24)
-
to
_ a (12)
検索結果
先頭5件
- CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") -> String - CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") { . . . } -> String - Net
:: HTTPGenericRequest # request _ body _ permitted? -> bool - Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool - Net
:: HTTPGenericRequest # body _ stream -> object
-
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") -> String (117.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
...ブロックを与えると、ブロックを評価した結果が内容になります。
@param method method 属性の値として "get" か "post" を指定します。
@param action action 属性の値を指定します。デフォルトは現在の CGI スクリプト名です。
@param en......type 属性の値を指定します。デフォルトは "application/x-www-form-urlencoded" です。
例:
form{ "string" }
# <FORM METHOD="post" ENCTYPE="application/x-www-form-urlencoded">string</FORM>
form("get"){ "string" }
# <FORM METHOD="get" ENCTYPE="application/x-www-form-urle... -
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") { . . . } -> String (117.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
...ブロックを与えると、ブロックを評価した結果が内容になります。
@param method method 属性の値として "get" か "post" を指定します。
@param action action 属性の値を指定します。デフォルトは現在の CGI スクリプト名です。
@param en......type 属性の値を指定します。デフォルトは "application/x-www-form-urlencoded" です。
例:
form{ "string" }
# <FORM METHOD="post" ENCTYPE="application/x-www-form-urlencoded">string</FORM>
form("get"){ "string" }
# <FORM METHOD="get" ENCTYPE="application/x-www-form-urle... -
Net
:: HTTPGenericRequest # request _ body _ permitted? -> bool (35.0) -
リクエストにエンティティボディを一緒に送ることが許されている HTTP メソッド (POST など)の場合真を返します。
...に送ることが許されている
HTTP メソッド (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::He... -
Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool (35.0) -
サーバからのレスポンスにエンティティボディを含むことが許されている HTTP メソッド (GET, POST など)の場合真を返します。
...含むことが許されている
HTTP メソッド (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:... -
Net
:: HTTPGenericRequest # body _ stream -> object (31.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...('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/te... -
Net
:: HTTPGenericRequest # body _ stream=(f) (31.0) -
サーバに送るリクエストのエンティティボディを IO オブジェクトなどのストリームで設定します。 f は read(size) メソッドが定義されている必要があります。
...('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/te... -
Net
:: HTTPGenericRequest # body -> String (19.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
:: HTTPGenericRequest # body=(body) (19.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... -
WEBrick
:: HTTPServlet :: CGIHandler # do _ GET(request , response) -> () (18.0) -
GET, POST リクエストを処理します。
...GET, POST リクエストを処理します。
@param request WEBrick::HTTPRequest のインスタンスを指定します。
@param response WEBrick::HTTPResponse のインスタンスを指定します。...