164件ヒット
[101-164件を表示]
(0.016秒)
キーワード
- APOP (12)
- Proxy (12)
-
delete
_ all (24) - foreach (12)
- new (24)
検索結果
先頭5件
- Net
:: HTTP . Proxy(address , port = 80) -> Class - Net
:: POP3 . delete _ all(address , port = nil , account , password , isapop=false) -> () - Net
:: POP3 . delete _ all(address , port = nil , account , password , isapop=false) {|mail| . . . . } -> () - Net
:: POP3 . foreach(address , port = nil , account , password , isapop=false) {|mail| . . . . } -> () - Net
:: POP3 . new(address , port = nil , apop = false) -> Net :: POP3
-
Net
:: HTTP . Proxy(address , port = 80) -> Class (119.0) -
Proxy 経由で http サーバに接続するためのクラスを作成し返します。
...に接続します。
address が nil のときは Net::HTTP クラスをそのまま返します。
//emlist[例1: Net::HTTP.new を使う][ruby]{
require 'net/http'
proxy_class = Net::HTTP::Proxy('proxy.example.com', 8080)
http = proxy_class.new('www.example.org')
http.start {|h|
h.get('/ja/')......。
}
//}
//emlist[例2: Net::HTTP.start を使う][ruby]{
require 'net/http'
proxy_class = Net::HTTP::Proxy('proxy.example.com', 8080)
proxy_class.start('www.example.org') {|h|
h.get('/ja/') # proxy.example.com 経由で接続します。
}
//}
@param address プロクシのホスト名を文... -
Net
:: POP3 . delete _ all(address , port = nil , account , password , isapop=false) -> () (113.0) -
POP セッションを開始し、サーバ上のメールを全て消去します。
...は110、SSL利用時には 995)を
使います。
使用例:
require 'net/pop'
Net::POP3.delete_all(addr, nil, 'YourAccount', 'YourPassword') do |m|
puts m.pop
end
@param address POP3サーバのホスト名文字列
@param port 接続するPOP3サーバのポート番号
@param acco......ていない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します
@see Net::POP3.start, Net::POP3#delete_all... -
Net
:: POP3 . delete _ all(address , port = nil , account , password , isapop=false) {|mail| . . . . } -> () (113.0) -
POP セッションを開始し、サーバ上のメールを全て消去します。
...は110、SSL利用時には 995)を
使います。
使用例:
require 'net/pop'
Net::POP3.delete_all(addr, nil, 'YourAccount', 'YourPassword') do |m|
puts m.pop
end
@param address POP3サーバのホスト名文字列
@param port 接続するPOP3サーバのポート番号
@param acco......ていない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します
@see Net::POP3.start, Net::POP3#delete_all... -
Net
:: POP3 . foreach(address , port = nil , account , password , isapop=false) {|mail| . . . . } -> () (113.0) -
POP セッションを開始し、 サーバ上のすべてのメールを取りだし、 個々のメールを引数としてブロックを呼びだします。
...(通常は110、SSL利用時には 995)を
使います。
以下のコードと同様の処理をします。
require 'net/pop'
Net::POP3.start(address, port, account, password, isapop=false) {|pop|
pop.each_mail do |m|
yield m
end
}
使用例:
require 'net/pop'
Net::......foreach('pop.example.com', 110,
'YourAccount', 'YourPassword') do |m|
file.write m.pop
m.delete if $DELETE
end
@param address POP3サーバのホスト名文字列
@param port 接続するPOP3サーバのポート番号
@param account アカウント名文字列
@param......ていない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します
@see Net::POP3.start, Net::POP3#each_mail... -
Net
:: POP3 . new(address , port = nil , apop = false) -> Net :: POP3 (107.0) -
Net::POP3 オブジェクトを生成します。
...す。
port に nil を渡すと、適当なポート(通常は110、SSL利用時には 995)を
使います。
@param address POP3サーバのホスト名文字列
@param port 接続するPOP3サーバのポート番号
@param apop 真の場合にはAPOPで認証します
@see Net::POP3#start... -
Net
:: POP3 . APOP(is _ apop) -> Class (13.0) -
bool が真なら Net::APOP クラス、偽なら Net::POP3 クラスを返します。
...bool が真なら Net::APOP クラス、偽なら Net::POP3 クラスを返します。
使用例:
require 'net/pop'
pop = Net::POP3::APOP($isapop).new(addr, port)
pop.start(account, password) {
....
}
@param is_apop 真の場合に Net::APOP を返します。...