36件ヒット
[1-36件を表示]
(0.023秒)
別のキーワード
キーワード
-
net
/ http (12) -
net
/ imap (12) -
webrick
/ httpresponse (12)
検索結果
-
webrick
/ httpresponse (6001.0) -
HTTP のレスポンスを表すためのクラスを提供するライブラリです。
HTTP のレスポンスを表すためのクラスを提供するライブラリです。 -
net
/ http (49.0) -
汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は 2616 に基きます。
...0
response = Net::HTTP.get_response(URI.parse(uri_str))
case response
when Net::HTTPSuccess
response
when Net::HTTPRedirection
fetch(response['location'], limit - 1)
else
response.value
end
end
print fetch('http://www.example.org')
//}
より詳しくは Net::HTTPResponse......::HTTP.start('www.example.com') {|http|
req = Net::HTTP::Get.new('/secret-page.html')
req.basic_auth 'account', 'password'
response = http.request(req)
print response.body
}
//}
=== フォームの値の区切り文字について
POSTで application/x-www-form-urlencoded として複... -
net
/ imap (13.0) -
このライブラリは Internet Message Access Protocol (IMAP) の クライアントライブラリです。2060 を元に 実装されています。
...バがタイムアウトする場合に発生します。
これらのエラーはそれぞれ
* Net::IMAP::NoResponseError
* Net::IMAP::BadResponseError
* Net::IMAP::ByeResponseError
という例外クラスに対応しています。
原理的には、これらの例外はサーバにコマ......れると Errno::EPIPE 例外が
発生します。詳しくは Socket などを見てください。
Net::IMAP::DataFormatError、
Net::IMAP::ResponseParseError という例外クラスも
存在します。前者はデータのフォーマットが正しくない場合に、
後者はサーバか......これらのエラーはこのライブラリもしくはサーバに深刻な問題が
あることを意味します。
=== tagged response と untagged response
IMAP プロトコルにおいてサーバからの応答には tagged なものと
untagged なものの2通り存在します。
tagg...