summaryrefslogtreecommitdiffstats
path: root/lib/net/http.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* aamineaamine2001-08-171-6/+6
| | | | | | | | | | * lib/net/protocol.rb: Protocol.new requires at least one arg. * lib/net/smtp.rb: ditto. * lib/net/pop.rb: ditto. * lib/net/http.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-07-131-2/+2
| | | | | | | * lib/net/http.rb: HTTP#proxy? did not worked. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-07-081-18/+56
| | | | | | | | * lib/net/http.rb: rename HTTP#request_by_name to send_request. * lib/net/protocol.rb (ProtoSocket#read): modify typo. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-07-031-2/+2
| | | | | | | * lib/net/http.rb (HTTP#request_by_name): arg order changes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-07-031-5/+12
| | | | | | | | | | * lib/net/http.rb (HTTP#request_by_name): bug fix. * lib/net/http.rb: does not write Connection: by default. * lib/net/protocol.rb: "start" for started protocol is an error. * lib/net/protocol.rb: "finish" for finished protocol is an error. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-07-031-110/+142
| | | | | | | | * lib/net/http.rb: new method HTTP#request_by_name (test) * lib/net/http.rb: new class HTTPGenericRequest git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * protocol.rb,smtp.rb,pop.rb,http.rb: modify document.aamine2001-06-271-32/+45
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-06-261-160/+328
| | | | | | | | | | * lib/net/pop.rb: new methods POP3.auth_only, POP3#auth_only * lib/net/http.rb: HTTP.Proxy returns self if ADDRESS is nil. * lib/net/protocol.rb: new method ProtocolError#response * lib/net/protocol.rb,smtp.rb,pop.rb,http.rb: add document. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-03-131-2/+5
| | | | | | | | | * lib/net/http.rb: add HTTPRequest#basic_auth. * lib/net/smtp.rb: raise if only account or password is given. * lib/net/protocol.rb: WriteAdapter#<< returns self. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-03-081-16/+21
| | | | | | | * lib/net/protocol.rb: one write(2) per one line. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-02-241-104/+130
| | | | | | | | * lib/net/http.rb: always close connection on request without body. * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: change copyright. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-02-221-112/+173
| | | | | | | | | * lib/net/protocol.rb: clear read buffer after reopen. * lib/net/protocol.rb: refactoring. * lib/net/http.rb: split module HTTPHeader from HTTPResponse. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-02-171-16/+12
| | | | | | | * lib/net/http.rb: Response#range_length was not debugged. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-02-071-27/+15
| | | | | | | | | * lib/net/http.rb: join HTTPReadResponse into HTTPResponse again. * lib/net/http.rb: move http_version() from HTTPRequest to HTTPResponse. * lib/net/protocol.rb: refactoring. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-02-071-34/+51
| | | | | | | | | * lib/net/http.rb: split HTTPResponse into HTTPReadResponse module. * lib/net/protocol.rb: add Net::net_private. * lib/net/protocol.rb: Socket#reopen takes arg, open_timeout. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-02-061-13/+2
| | | | | | | * lib/net/http.rb: Proxy did not work. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-02-061-0/+1
| | | | | | | | * lib/net/http.rb: call on_connect() on re-opening socket. * lib/net/pop.rb: also POP3 can use APOP auth. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-02-061-256/+236
| | | | | | | | | | * lib/net/http.rb: add HTTP#request. * lib/net/http.rb: take HTTP 1.0 server into account (incomplete). * lib/net/protocol.rb: timeout for open/read. * lib/net/protocol.rb: add Protocol#on_connect,on_disconnect. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-01-161-1/+1
| | | | | | | | * lib/net/protocol.rb: ignore EOFError for read. * lib/net/http.rb: user specified header was not used. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2001-01-131-454/+478
| | | | | | | | * lib/net/protocol.rb (adding): too few "yield" in case of arg is not String/File. * lib/net/http.rb: add http request object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-12-241-474/+454
| | | | | | | | * lib/net/protocol.rb,smtp.rb,pop.rb,http.rb: wrongly version 1.2 sources were checked in. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-12-241-458/+474
| | | | | | | * lib/net/http.rb: does not send HEAD on closing socket. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-12-221-12/+12
| | | | | | | | | | | * lib/net/protocol.rb: set @closed false in Socket#reopen. * lib/net/pop.rb: add POP3.foreach, delete_all. * lib/net/pop.rb: add POP3#delete_all. * lib/net/http.rb: add HTTP.version_1_1, version_1_2 * lib/net/http.rb: refactoring. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-11-161-125/+126
| | | | | | | | | | | | | | * lib/net/http.rb: can call {old,new}_implementation any times. * lib/net/http.rb: HTTP#connecting, receive -> common_oper, connecting. * lib/net/http.rb: output warning if u_header includes duplicated header. * lib/net/http.rb: not check Connection:/Proxy-Connection; always read until eof. * lib/net/protocol: detects and catches "break" from block. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-11-101-61/+176
| | | | | | | | | * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.31 * lib/net/http.rb: initializes header in HTTP, not HTTPCommand * lib/net/protocol.rb, http.rb: rewrites proxy code git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-11-071-63/+89
| | | | | | | | | * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.30 * lib/net/protocol.rb, smtp.rb: Command#critical_ok -> error_ok * lib/net/http.rb: read header when also "100 Continue" git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-10-151-1/+1
| | | | | | | * lib/net/http.rb: hex-alpha is not [a-h] but [a-f]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-10-121-1/+1
| | | | | | | | * lib/net/pop.rb: POP3#reset * lib/net/http.rb: a code for "Switch Protocol" was wrongly 100 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-10-111-169/+200
| | | | | | | * lib/net/protocol.rb: 2nd arg for ProtocolError#initialize is optional. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-09-231-4/+4
| | | | | | | * lib/net/protocol.rb, http.rb: typo. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-09-221-7/+7
| | | | | | | * lib/net/http.rb: too early parameter expantion in string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-09-211-72/+123
| | | | | | | | | * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.28. * lib/net/http.rb: HTTPReadAdapter -> HTTPResponseReceiver * lib/net/http.rb (connecting): response is got in receive() git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* matz - net library bug (by me)matz2000-09-211-3/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* matz: 1.6.0 final (hopufully)matz2000-09-121-5/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-08-161-3/+4
| | | | | | | | | * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.27. * lib/net/protocol.rb: writing methods returns written byte size. * lib/net/smtp.rb: send_mail accepts many destinations. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* aamineaamine2000-07-121-46/+50
| | | | | | | | | | | * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.26. * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: add module Net::NetPrivate and its inner classes {Read,Write}Adapter, Command, Socket, SMTPCommand, POP3Command, APOPCommand, HTTPCommand git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.26.aamine2000-07-031-10/+3
| | | | | | | | * lib/net/protocol.rb (finish): do nothing unless active. * lib/net/http.rb: HTTP#{get,post}2 again (for new impl). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb, smtp.rb, pop.rb, http.rb: 1.1.24.aamine2000-06-271-20/+109
| | | | | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* o protocol.rb, smtp.rb, pop.rb, http.rb: define all#inspect()aamine2000-06-121-19/+54
| | | | | | | o protocol.rb, smtp.rb, pop.rb, http.rb: modify/add documents git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* o http.rb: body is in HTTPResponseaamine2000-06-121-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* o protocol.rb: ProtocolError can take dataaamine2000-06-091-1/+17
| | | | | | | o http.rb: raise exception with response git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* o smtp.rb: not catch NameError in authaamine2000-06-011-6/+8
| | | | | | | | o http.rb: not close connection in get_body, Only connection() closes socket git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* p http.rb: do not use Regexp "p" optionaamine2000-05-221-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* o protocol.rb, http.rb, smtp.rb, pop.rb: update RD documentsaamine2000-05-181-5/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* protocol.rb version 1.1.17aamine2000-05-051-1/+11
| | | | | | | | o http.rb: 'Host:' field includes port if port != 80 o http.rb: see also 'proxy-connection:' field git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* {protocol,smtp,pop,http}.rb 1.1.15aamine2000-04-221-56/+38
| | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* {protocol,smtp,pop}.rb version 1.1.14aamine2000-04-181-48/+57
| | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* o pop.rb: accept illegal timestamp (reported by WATANABE Hirofumi)aamine2000-04-141-10/+7
| | | | | | | o http.rb: when body was chunked, does not set 'Content-Length' git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* protocol.rb smtp.rb pop.rb http.rb version 1.1.12aamine2000-03-311-152/+216
| | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* v1.1.11aamine2000-03-271-105/+242
| | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e