diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-21 15:25:37 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-21 15:25:37 +0000 |
commit | 3fef8bb12c0a82b49a89a29457818b28b2a000aa (patch) | |
tree | f899e8e8b7b726b98a43d3edbfd7e5bdbd6cf8ad /lib/net/http.rb | |
parent | 3d6fde336547463461180b9be5b1730194764d9c (diff) | |
download | ruby-3fef8bb12c0a82b49a89a29457818b28b2a000aa.tar.gz |
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
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r-- | lib/net/http.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 4847f88bf7..4ae5349202 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -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 |