548件ヒット
[101-200件を表示]
(0.031秒)
クラス
-
Net
:: HTTP (324) -
Net
:: HTTPGenericRequest (84) -
Net
:: HTTPResponse (60)
キーワード
- HTTPRequest (12)
-
NEWS for Ruby 2
. 5 . 0 (8) - OCSP (12)
- body= (12)
-
body
_ exist? (12) -
body
_ permitted? (12) -
body
_ stream (12) -
body
_ stream= (12) - entity (12)
- get (24)
- get2 (24)
- head2 (24)
-
local
_ host= (12) -
local
_ port= (12) - lock (12)
- mkcol (12)
- move (12)
- patch (24)
- post (24)
- post2 (24)
- propfind (12)
- proppatch (12)
-
read
_ body (24) -
request
_ body _ permitted? (12) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
response
_ body _ permitted? (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 9 feature (12) -
send
_ request (12) - unlock (12)
検索結果
先頭5件
-
Net
:: HTTPGenericRequest # request _ body _ permitted? -> bool (14119.0) -
リクエストにエンティティボディを一緒に送ることが許されている 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::Head.new(uri.request_uri)
head.request_body_permitted? # => false
//}... -
Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool (14119.0) -
サーバからのレスポンスにエンティティボディを含むことが許されている 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::Head.new(uri.request_uri)
head.response_body_permitted? # => false
//}... -
Net
:: HTTPResponse . body _ permitted? -> bool (14119.0) -
エンティティボディを含むことが許されているレスポンスクラス ならば真を、そうでなければ偽を返します。
...エンティティボディを含むことが許されているレスポンスクラス
ならば真を、そうでなければ偽を返します。
//emlist[例][ruby]{
require 'net/http'
Net::HTTPSuccess.body_permitted? # => true
Net::HTTPNotModified.body_permitted? # => false
//}... -
Net
:: HTTPGenericRequest # body _ exist? -> bool (14107.0) -
このメソッドは obsolete です。
...このメソッドは obsolete です。
Net::HTTPGenericRequest#response_body_permitted?
の別名です。... -
Net
:: HTTPResponse # entity -> String | () | nil (11019.0) -
エンティティボディを返します。
...。
Net::HTTPResponse#read_body をブロック付きで呼んだ場合には
このメソッドはNet::ReadAdapter のインスタンスを返しますが、
これは使わないでください。
entity は obsolete です。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.c......om/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.body[0..10] # => "<!doctype h"
//}... -
Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (8131.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...ボディを少しずつ文字列として
ブロックに与えます。このとき戻り値の
Net::HTTPResponse オブジェクトは有効な body を
持ちません。
dest は時代遅れの引数です。利用しないでください。
dest を指定した場合には
ボディを少し......ィ] となります。
//emlist[例][ruby]{
# net/http version 1.1
response, body = http.get( '/index.html' )
# net/http version 1.2
response = http.get('/index.html')
# compatible in both version
response , = http.get('/index.html')
response.body
# compatible, using block
File.open('save.txt',... -
Net
:: HTTP # lock(path , body , initheader = nil) -> Net :: HTTPResponse (8123.0) -
サーバの path に LOCK リクエストを ヘッダを initheader, ボディを body として送ります。
...クエストを
ヘッダを initheader, ボディを body として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param body リクエストのボディを文字列で与えま... -
Net
:: HTTP # mkcol(path , body , initheader = nil) -> Net :: HTTPResponse (8123.0) -
サーバの path に MKCOL リクエストを ヘッダが initheader, ボディを body として送ります。
...クエストを
ヘッダが initheader, ボディを body として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param body リクエストのボディを文字列で与えま... -
Net
:: HTTP # move(path , body , initheader = nil) -> Net :: HTTPResponse (8123.0) -
サーバの path に MOVE リクエストを ヘッダが initheader, ボディを body として送ります。
...クエストを
ヘッダが initheader, ボディを body として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param body リクエストのボディを文字列で与えま...