summaryrefslogtreecommitdiff
path: root/lib/net/http.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-21 15:25:37 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-02-21 15:25:37 +0000
commit3fef8bb12c0a82b49a89a29457818b28b2a000aa (patch)
treef899e8e8b7b726b98a43d3edbfd7e5bdbd6cf8ad /lib/net/http.rb
parent3d6fde336547463461180b9be5b1730194764d9c (diff)
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.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 4847f88..4ae5349 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