Updated deps
[perl4caml.git] / wrappers / pl_HTTP_Request.ml
index be17e17..53c24a5 100644 (file)
@@ -1,13 +1,17 @@
-(* Wrapper around Perl HTTP::Request class.
- * Copyright (C) 2003 Merjis Ltd.
- * $Id: pl_HTTP_Request.ml,v 1.1 2003-10-12 17:33:15 rich Exp $
- *)
+(** Wrapper around Perl [HTTP::Request] class.
+  *
+  * Copyright (C) 2003 Merjis Ltd.
+  *
+  * $Id: pl_HTTP_Request.ml,v 1.4 2005-01-13 16:06:04 rich Exp $
+  *)
 
 open Perl
 
 open Pl_HTTP_Message
 open Pl_URI
 
+let _ = eval "use HTTP::Request"
+
 class http_request sv =
 
 object (self)
@@ -19,6 +23,10 @@ object (self)
     string_of_sv (call_method sv "method" [])
   method set_method meth =
     call_method_void sv "method" [sv_of_string meth]
+  method uri =
+    string_of_sv (call_method sv "uri" [])
+  method set_uri uri =
+    call_method_void sv "uri" [sv_of_string uri]
   method as_string =
     string_of_sv (call_method sv "as_string" [])