aws

Amazon Web Services SDK
IN THIS PACKAGE
Module Aws . Query
type t =
| List of t list
| Pair of string * t
| Value of string option

The query type. In the following examples, constructors are ellided for brevity.

Structs are encoded as (name1, val); (name2, val)....

Lists are encoded as (0, val); (1, val)....

val render : t -> string

This is how to turn a Query.t into a string suitable for including in a url. It is a query string, ie field=val&field=val...

val to_query_list : ( 'a -> t ) -> 'a list -> t

This is a helper to convert a list into a Query.t. It encodes it as (0, val); (1, val)....

val to_query_hashtbl : ( 'a -> string ) -> ( 'b -> t ) -> ( 'a, 'b ) Hashtbl.t -> t