Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 46 lines (34 sloc) 1.598 kb
fccc685 Initial open-source release
MLstate authored
1 (*
c65e357 @BourgerieQuentin [feature] libbase: Encodings simple generator of encode/decode function
BourgerieQuentin authored
2 Copyright © 2011, 2012 MLstate
fccc685 Initial open-source release
MLstate authored
3
6fac5ce @Aqua-Ye [cleanup] ocamllib: typo on Opa
Aqua-Ye authored
4 This file is part of Opa.
fccc685 Initial open-source release
MLstate authored
5
6fac5ce @Aqua-Ye [cleanup] ocamllib: typo on Opa
Aqua-Ye authored
6 Opa is free software: you can redistribute it and/or modify it under the
fccc685 Initial open-source release
MLstate authored
7 terms of the GNU Affero General Public License, version 3, as published by
8 the Free Software Foundation.
9
6fac5ce @Aqua-Ye [cleanup] ocamllib: typo on Opa
Aqua-Ye authored
10 Opa is distributed in the hope that it will be useful, but WITHOUT ANY
fccc685 Initial open-source release
MLstate authored
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
6fac5ce @Aqua-Ye [cleanup] ocamllib: typo on Opa
Aqua-Ye authored
16 along with Opa. If not, see <http://www.gnu.org/licenses/>.
fccc685 Initial open-source release
MLstate authored
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
c65e357 @BourgerieQuentin [feature] libbase: Encodings simple generator of encode/decode function
BourgerieQuentin authored
27 val pc_encode_string : (char -> bool) -> string -> string
28
29 val pc_decode_string : string -> string
30
fccc685 Initial open-source release
MLstate authored
31 val encode_list_to_map : (char * string) list -> string array
32 val encode_uri_component : string -> string
33 val decode_uri_component : string -> string
34 val encode_aws_uri : string -> string
35 val http_encode : string -> string
36 val revert_http_encode : string -> string
37
38 (** Hand-optimised HTTP rewrite.
39 Extracts "<name> = <value> <&> ..." pairs from strings with HTTP decode (%uAAAA -> etc.)
40 *)
41 exception HttpBodyRewriteError of int * string
42 val http_body_rewrite : string -> int * (string * string) list
43
44 (* End of file encodings.mli *)
45
Something went wrong with that request. Please try again.