* lib/net/protocol.rb: modified each_crlf_line again.
* lib/net/protocol.rb: do_write_beg,do_write_end -> writing{}
do_write_do -> do_write
* lib/net/http.rb: can make proxy connection by passing
addresses to HTTP.new, start.
* lib/net/http.rb: HTTP.new_implementation, old_implementation:
can use 1.2 implementation of head, get, post, put.
(see document)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
o http.rb: not close connection in get_body,
Only connection() closes socket
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
o http.rb: 'Host:' field includes port if port != 80
o http.rb: see also 'proxy-connection:' field
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
o http.rb: (keep_alive?) use both user header and response
o http.rb: (connecting) returns response
o http.rb: (connecting) proc u_header and yield it
o http.rb: (connecting) call user block in conecting
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
o http.rb: HTTP#head2
o http.rb: HTTPResponse#value
o http.rb: get2/post2 returns response header
o http.rb: *2 does not raise exceptions
o smtp.rb: try esmtp only first time
o protocol.rb: remove error_occured
o protocol.rb: Command#error! does not take argument
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
o http.rb: when body was chunked, does not set 'Content-Length'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
o protocol.rb: update Net::Protocol::Proxy#connect
o protocol.rb: ReplyCode is not a class
o http.rb: header value does not include header name
o http.rb: header is not a Hash, but HTTPResponse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
o all: use "critical" to avoid duplicated command dispatch
o http.rb: change get2, post2 usage (HTTPWriter)
o http.rb: entity reading algorithm is better
o http.rb: more reply code (4xx, 5xx)
o protocol.rb: arguments of "connect" can be omitted
o protocol.rb: "quit" is not template method (now do_quit is removed)
o protocol.rb: ReplyCode.error_type was not work: using module_eval
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
o smtp.rb: arguments discription of do_ready was wrongly void
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
o all: use 'attr_reader/writer' instead of 'attr'
o http.rb: get/head allow implicit 'start'
o http.rb: change connection state algorithm
o http.rb: process user header before write
o protocol.rb: refine start/finish
o protocol.rb: Command#last_reply
o protocol.rb: ReplyCode.error!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
o write, write_pendstr takes block
o smtp.ready
o popmail.pop takes block
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e