]> matita.cs.unibo.it Git - helm.git/blob - helm/http_getter/http_getter_types.ml
- added module StringSet that implement set of string
[helm.git] / helm / http_getter / http_getter_types.ml
1 (*
2  *  Copyright (C) 2000, HELM Team.
3  *
4  *  This file is part of HELM, an Hypertextual, Electronic
5  *  Library of Mathematics, developed at the Computer Science
6  *  Department, University of Bologna, Italy.
7  *
8  *  HELM is free software; you can redistribute it and/or
9  *  modify it under the terms of the GNU General Public License
10  *  as published by the Free Software Foundation; either version 2
11  *  of the License, or (at your option) any later version.
12  *
13  *  HELM is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with HELM; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston,
21  *  MA  02111-1307, USA.
22  *
23  *  For details, see the HELM World-Wide-Web page,
24  *  http://cs.unibo.it/helm/.
25  *)
26
27 exception Http_getter_bad_request of string
28 exception Http_getter_unresolvable_URI of string
29 exception Http_getter_invalid_URI of string
30 exception Http_getter_invalid_URL of string
31 exception Http_getter_invalid_RDF_class of string
32 exception Http_getter_internal_error of string
33
34 type http_getter_encoding = Enc_normal | Enc_gzipped
35 type http_getter_answer_format = Fmt_text | Fmt_xml
36 type http_getter_ls_flag = No | Yes | Ann
37
38 type http_getter_xml_uri =
39   | Cic of string
40   | Theory of string
41 type http_getter_rdf_uri = string * http_getter_xml_uri
42 type http_getter_uri =
43   | Xml_uri of http_getter_xml_uri
44   | Rdf_uri of http_getter_rdf_uri
45
46 module StringSet = Set.Make (String)
47