X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=wrappers%2Fpl_HTTP_Request.ml;h=c457a3bb44b387dab9d0e1afd26d279073688756;hb=95d760554441dac36fb77011c0c875490f873d68;hp=be17e17cda64438e67599388d558d20427bc5ac3;hpb=1c369c3ba6b71d4524dfacd0ba3554e8a524ed57;p=perl4caml.git diff --git a/wrappers/pl_HTTP_Request.ml b/wrappers/pl_HTTP_Request.ml index be17e17..c457a3b 100644 --- a/wrappers/pl_HTTP_Request.ml +++ b/wrappers/pl_HTTP_Request.ml @@ -1,13 +1,31 @@ -(* 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. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; see the file COPYING. If not, write to + the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. + + $Id: pl_HTTP_Request.ml,v 1.5 2008-03-01 13:02:21 rich Exp $ + *) open Perl open Pl_HTTP_Message open Pl_URI +let _ = eval "use HTTP::Request" + class http_request sv = object (self) @@ -19,6 +37,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" [])