X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Focaml-http%2Fhttp_parser.mli;h=cd42c79e52e27cbea9fc49d1259d06e57379e411;hb=ca9cd0aeee0ce78a891f7f6091ca8704231a446d;hp=4e70c35e4ddb2a06db85534f8b19c12a8086fdcd;hpb=b5703de4f7697426ebda94fce2558add7c4f0285;p=helm.git diff --git a/helm/DEVEL/ocaml-http/http_parser.mli b/helm/DEVEL/ocaml-http/http_parser.mli index 4e70c35e4..cd42c79e5 100644 --- a/helm/DEVEL/ocaml-http/http_parser.mli +++ b/helm/DEVEL/ocaml-http/http_parser.mli @@ -19,9 +19,14 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *) -val heal_header_name: string -> unit -val heal_header_value: string -> unit -val heal_header: string * string -> unit +open Http_types;; + +val split_query_params: string -> (string * string) list + +val parse_request_fst_line: in_channel -> meth * Neturl.url * version +val parse_query_get_params: Neturl.url -> (string * string) list +val parse_path: Neturl.url -> string +val parse_headers: in_channel -> (string * string) list (** given an input channel, reads from it a GET HTTP request and @return a pair where path is a string representing the @@ -29,6 +34,3 @@ val heal_header: string * string -> unit parameters) *) val parse_request: in_channel -> string * (string * string) list - (** as above, but return an Http_types.request instance *) -val parse_request': in_channel -> Http_types.request -