655件ヒット
[101-200件を表示]
(0.020秒)
種類
- インスタンスメソッド (559)
- 特異メソッド (96)
ライブラリ
-
net
/ http (655)
キーワード
-
close
_ on _ empty _ response (12) -
close
_ on _ empty _ response= (12) -
continue
_ timeout (12) -
continue
_ timeout= (12) - copy (12)
- delete (12)
- get (24)
- get2 (24)
-
get
_ response (24) - head (12)
- head2 (24)
-
is
_ version _ 1 _ 1? (12) -
is
_ version _ 1 _ 2? (12) -
keep
_ alive _ timeout= (12) - lock (12)
- mkcol (12)
- move (12)
-
open
_ timeout= (12) - patch (24)
- post (24)
- post2 (24)
-
post
_ form (12) - propfind (12)
- proppatch (12)
- put (12)
- put2 (24)
-
read
_ timeout= (12) - request (24)
-
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) -
send
_ request (12) -
ssl
_ version (12) -
ssl
_ version= (12) - trace (12)
- unlock (12)
-
version
_ 1 _ 1? (12) -
version
_ 1 _ 2 (12) -
version
_ 1 _ 2? (12) -
write
_ timeout= (7)
検索結果
先頭5件
-
Net
:: HTTP # ssl _ version=(ver) (6101.0) -
利用するプロトコルの種類を指定します。
...利用するプロトコルの種類を指定します。
OpenSSL::SSL::SSLContext.new で指定できるものと同じです。
@param ver 利用するプロトコルの種類(文字列 or シンボル)
@see Net::HTTP#ssl_version, OpenSSL::SSL::SSLContext#ssl_version=... -
Net
:: HTTP . is _ version _ 1 _ 1? -> false (6101.0) -
何もしません。互換性のために残されており、常に false を返します。
...何もしません。互換性のために残されており、常に false を返します。
@see Net::HTTP.version_1_2, Net::HTTP.version_1_2?... -
Net
:: HTTP . is _ version _ 1 _ 2? -> true (6101.0) -
何もしません。互換性のために残されており、常に true を返します。
...何もしません。互換性のために残されており、常に true を返します。
@see Net::HTTP.version_1_2, Net::HTTP.version_1_1?... -
Net
:: HTTP . version _ 1 _ 1? -> false (6101.0) -
何もしません。互換性のために残されており、常に false を返します。
...何もしません。互換性のために残されており、常に false を返します。
@see Net::HTTP.version_1_2, Net::HTTP.version_1_2?... -
Net
:: HTTP . version _ 1 _ 2 -> true (6101.0) -
何もしません。互換性のために残されており、常に true を返します。
...何もしません。互換性のために残されており、常に true を返します。
@see Net::HTTP.version_1_1?, Net::HTTP.version_1_2?... -
Net
:: HTTP . version _ 1 _ 2? -> true (6101.0) -
何もしません。互換性のために残されており、常に true を返します。
...何もしません。互換性のために残されており、常に true を返します。
@see Net::HTTP.version_1_2, Net::HTTP.version_1_1?... -
Net
:: HTTP # get2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (201.0) -
サーバ上の path にあるエンティティを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......ともに呼び出されたときは、
エンティティボディをソケットから読み出す前に、
接続を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
大きなサイズのボディを一度に読みだすとまずく、
小さなサイズ......す。
//emlist[例][ruby]{
# example
response = http.request_get('/index.html')
p response['content-type']
puts response.body # body is already read
# using block
http.request_get('/index.html') {|response|
p response['content-type']
response.read_body do |str| # read body now... -
Net
:: HTTP # head2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (201.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティのヘッダのみを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*',......... } という
形のハッシュでなければいけません。
ブロックとともに呼び出されたときは、
Net::HTTP#request_get と同じ動作を
しますが、そもそもヘッダしか要求していないので
body は空です。そのためこの動作はそれほど意味......文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
head2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
response = http.request_head('/index.html')
p response['content-type']
//}
@see Net::HTTP#head... -
Net
:: HTTP # post2(path , data , header = nil) {|response| . . . . } -> Net :: HTTPResponse (201.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。 返り値は Net::HTTPResponse のインスタンスです。
...サーバ上の path にあるエンティティに対し文字列 data を
POST で送ります。
返り値は Net::HTTPResponse のインスタンスです。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { '......を維持した状態で Net::HTTPResponse
オブジェクトをブロックに渡します。
POST する場合にはヘッダに Content-Type: を指定する必要があります。
もし header に指定しなかったならば、 Content-Type として
"application/x-www-form-urlencoded" を......][ruby]{
response = http.request_post('/cgi-bin/nice.rb', 'datadatadata...')
p response.status
puts response.body # body is already read
# using block
http.request_post('/cgi-bin/nice.rb', 'datadatadata...') {|response|
p response.status
p response['content-type']
response.read_body...