From 3fef8bb12c0a82b49a89a29457818b28b2a000aa Mon Sep 17 00:00:00 2001 From: aamine Date: Mon, 21 Feb 2000 15:25:37 +0000 Subject: 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 --- lib/net/http.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/net/http.rb') 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 -- cgit v1.2.3