Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 42 lines (32 sloc) 1.492 kB
fccc685 Initial open-source release
MLstate authored
1 (*
2 Copyright © 2011 MLstate
3
4 This file is part of OPA.
5
6 OPA is free software: you can redistribute it and/or modify it under the
7 terms of the GNU Affero General Public License, version 3, as published by
8 the Free Software Foundation.
9
10 OPA is distributed in the hope that it will be useful, but WITHOUT ANY
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
13 more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with OPA. If not, see <http://www.gnu.org/licenses/>.
17 *)
18 (** Encodings:
19 Some string transformation functions, mostly to do with HTTP/HTML/etc.
20 *)
21
22 (** A hand optimised decode for "%30" -> "0" etc. *)
23 val http_unencode : string -> string
24
25 (** Generic string encoding functions. *)
26 val encode_chars : ?hint:(int -> int) -> (char -> string) -> string -> string
27 val encode_list_to_map : (char * string) list -> string array
28 val encode_uri_component : string -> string
29 val decode_uri_component : string -> string
30 val encode_aws_uri : string -> string
31 val http_encode : string -> string
32 val revert_http_encode : string -> string
33
34 (** Hand-optimised HTTP rewrite.
35 Extracts "<name> = <value> <&> ..." pairs from strings with HTTP decode (%uAAAA -> etc.)
36 *)
37 exception HttpBodyRewriteError of int * string
38 val http_body_rewrite : string -> int * (string * string) list
39
40 (* End of file encodings.mli *)
41
Something went wrong with that request. Please try again.