657件ヒット
[1-100件を表示]
(0.081秒)
種類
- インスタンスメソッド (561)
- 特異メソッド (44)
- クラス (41)
- モジュール (11)
クラス
-
Net
:: HTTP (484) -
Net
:: HTTPGenericRequest (11) -
Net
:: HTTPResponse (99)
モジュール
-
Net
:: HTTPExceptions (11)
キーワード
- HTTPExceptions (11)
- HTTPInsufficientStorage (11)
- HTTPUnavailableForLegalReasons (8)
- HTTPUnsupportedMediaType (11)
- Options (11)
- body (11)
-
body
_ permitted? (11) - cert (11)
-
cert
_ store (11) - code (11)
- copy (11)
- delete (11)
- entity (11)
- get (22)
- get2 (22)
-
get
_ response (22) - head (11)
- head2 (22)
-
http
_ version (11) - key (11)
- lock (11)
- mkcol (11)
- move (11)
- msg (11)
- patch (22)
-
peer
_ cert (11) - post (22)
- post2 (22)
-
post
_ form (11) - propfind (11)
- proppatch (11)
- put (11)
- put2 (22)
-
read
_ body (11) - request (22)
-
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
request
_ put (22) - response (11)
-
response
_ body _ permitted? (11) -
send
_ request (11) - trace (11)
- unlock (11)
- value (11)
検索結果
先頭5件
-
Net
:: HTTP # options(path , initheader = nil) -> Net :: HTTPResponse (12302.0) -
サーバの path に OPTIONS リクエストを ヘッダが initheader として送り、 レスポンスを Net::HTTPResponse のオブジェクト で返します。
...サーバの path に OPTIONS リクエストを
ヘッダが initheader として送り、
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを「文......字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Options... -
Net
:: HTTPExceptions # response -> Net :: HTTPResponse (12202.0) -
例外の原因となったレスポンスオブジェクトを返します。
...たレスポンスオブジェクトを返します。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/invalid.html"
response = Net::HTTP.get_response(URI.parse(uri))
begin
response.value
rescue => e
e.response # => #<Net::HTTPNotFound 404 Not Found readbody=true>
end
//}... -
Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool (12202.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
:: HTTP :: Options (12002.0) -
HTTP の OPTIONS リクエストを表すクラスです。
...HTTP の OPTIONS リクエストを表すクラスです。... -
Net
:: HTTPExceptions (12002.0) -
HTTP 例外クラスです。
...です。
実際にはこれを include した以下のサブクラスの
例外が発生します。
* Net::HTTPError
* Net::HTTPRetriableError
* Net::HTTPServerException
* Net::HTTPFatalError
また、例外を発生させるためには Net::HTTPResponse#value を
呼ぶ必要があり... -
Net
:: HTTPInsufficientStorage (12002.0) -
HTTP レスポンス 507 (Insufficient Storage) を表現するクラスです。
...HTTP レスポンス 507 (Insufficient Storage) を表現するクラスです。
詳しくは 4918 を見てください。... -
Net
:: HTTPUnavailableForLegalReasons (12002.0) -
HTTP レスポンス 451 (Unavailable For Legal Reasons) を表現するクラスです。
...HTTP レスポンス 451 (Unavailable For Legal Reasons) を表現するクラスです。
詳しくは 7725 を見てください。... -
Net
:: HTTPUnsupportedMediaType (12002.0) -
HTTP レスポンス 415 (Unsupported Media Type) を表現するクラスです。
...HTTP レスポンス 415 (Unsupported Media Type) を表現するクラスです。
詳しくは 7231 Section 6.5.13, 7694 Section 3 を見てください。... -
Net
:: HTTPResponse # http _ version -> String (9102.0) -
サーバがサポートしている HTTP のバージョンを文字列で返します。
...サーバがサポートしている HTTP のバージョンを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.http_version # => "1.1"
//}... -
Net
:: HTTPResponse . body _ permitted? -> bool (9102.0) -
エンティティボディを含むことが許されているレスポンスクラス ならば真を、そうでなければ偽を返します。
...エンティティボディを含むことが許されているレスポンスクラス
ならば真を、そうでなければ偽を返します。
//emlist[例][ruby]{
require 'net/http'
Net::HTTPSuccess.body_permitted? # => true
Net::HTTPNotModified.body_permitted? # => false
//}...