1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

o session.rb -> protocol.rb

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
This commit is contained in:
aamine 2000-02-21 15:25:37 +00:00
parent 3d6fde3365
commit 3fef8bb12c
3 changed files with 91 additions and 16 deletions

View file

@ -10,7 +10,7 @@ You can freely distribute/modify this library.
=end
require 'net/session'
require 'net/protocol'
module Net
@ -175,7 +175,15 @@ class HTTPBadResponse < HTTPError; end
end
# def put
# not work
def post( path, u_header = nil )
get_response sprintf( 'POST %s HTTP/%s', path, HTTPVersion ), u_header
end
# not work
def put( path, u_header = nil )
get_response sprintf( 'PUT %s HTTP/%s', path, HTTPVersion ), u_header
end
# def delete