* lib/net/http.rb: does not send HEAD on closing socket.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2000-12-24 19:39:15 +00:00
Родитель 79633d3bb8
Коммит c8da204306
5 изменённых файлов: 512 добавлений и 491 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Mon Dec 25 04:43:02 2000 Minero Aoki <aamine@dp.u-netsurf.ne.jp>
* lib/net/http.rb: does not send HEAD on closing socket.
Sat Dec 23 03:44:16 2000 Minero Aoki <aamine@dp.u-netsurf.ne.jp> Sat Dec 23 03:44:16 2000 Minero Aoki <aamine@dp.u-netsurf.ne.jp>
* lib/net/protocol.rb: set @closed false in Socket#reopen. * lib/net/protocol.rb: set @closed false in Socket#reopen.

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,6 +1,6 @@
=begin =begin
= net/pop.rb version 1.1.32 = net/pop.rb version 1.2.0
written by Minero Aoki <aamine@dp.u-netsurf.ne.jp> written by Minero Aoki <aamine@dp.u-netsurf.ne.jp>
@ -126,14 +126,16 @@ Object
=== Methods === Methods
: pop( dest = '' ) : all( dest = '' )
: pop
: mail
This method fetches a mail and write to 'dest' using '<<' method. This method fetches a mail and write to 'dest' using '<<' method.
# usage example # usage example
mailarr = [] mailarr = []
POP3.start( 'localhost', 110 ) do |pop| POP3.start( 'localhost', 110 ) do |pop|
pop.each_mail do |popm| pop.each do |popm|
mailarr.push popm.pop # all() returns 'dest' (this time, string) mailarr.push popm.pop # all() returns 'dest' (this time, string)
# or, you can also # or, you can also
# popm.pop( $stdout ) # write mail to stdout # popm.pop( $stdout ) # write mail to stdout
@ -143,16 +145,15 @@ Object
end end
end end
: pop {|str| .... } : all {|str| .... }
If pop() is called with block, it gives the block part strings of a mail. You can call all/pop/mail with block.
argument 'str' is a read string (a part of mail).
# usage example # usage example
POP3.start( 'localhost', 110 ) do |pop3| POP3.start( 'localhost', 110 ) do |pop|
pop3.each_mail do |m| pop.mails[0].pop do |str| # pop only first mail...
m.pop do |str| _do_anything_( str )
# do anything
end
end end
end end

Просмотреть файл

@ -1,6 +1,6 @@
=begin =begin
= net/protocol.rb version 1.1.32 = net/protocol.rb version 1.2.0
written by Minero Aoki <aamine@dp.u-netsurf.ne.jp> written by Minero Aoki <aamine@dp.u-netsurf.ne.jp>
@ -65,7 +65,7 @@ module Net
class Protocol class Protocol
Version = '1.1.32' Version = '1.2.0'
class << self class << self

Просмотреть файл

@ -1,6 +1,6 @@
=begin =begin
= net/smtp.rb version 1.1.32 = net/smtp.rb version 1.2.0
written by Minero Aoki <aamine@dp.u-netsurf.ne.jp> written by Minero Aoki <aamine@dp.u-netsurf.ne.jp>