summaryrefslogtreecommitdiff
path: root/lib/net/http.rb
diff options
context:
space:
mode:
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 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