Create an AWS HTTP unsigned request.
request GET "/" emptyBody decodeFn
|> toString
--> "{ method = \"GET\", path = \"/\", body = Empty, decoder = <decoder>, headers = [], query = [], responseParser = Nothing }"Create an AWS HTTP unsigned request that expects a JSON response.
request GET "/" emptyBody Json.Decode.value
|> toString
--> "{ method = \"GET\", path = \"/\", body = Empty, decoder = <decoder>, headers = [], query = [], responseParser = Nothing }"Appends headers to an AWS HTTP unsigned request.
request GET "/" emptyBody Json.Decode.value
|> addHeaders
[ ( "x-custom-1", "value 1" )
, ( "x-Custom-2", "value 2" )
]
|> addHeaders
[ ( "x-custom-3", "value 3" )
]
|> toString
--> "{ method = \"GET\", path = \"/\", body = Empty, decoder = <decoder>, headers = [(\"x-custom-1\",\"value 1\"),(\"x-Custom-2\",\"value 2\"),(\"x-custom-3\",\"value 3\")], query = [], responseParser = Nothing }"Appends query arguments to an AWS HTTP unsigned request.
request GET "/" emptyBody Json.Decode.value
|> addQuery
[ ( "key1", "value 1" )
, ( "Key2", "value 2" )
]
|> addQuery
[ ( "key3", "value 3" )
]
|> toString
--> "{ method = \"GET\", path = \"/\", body = Empty, decoder = <decoder>, headers = [], query = [(\"key1\",\"value 1\"),(\"Key2\",\"value 2\"),(\"key3\",\"value 3\")], responseParser = Nothing }"Set a parser for the entire Http.Response. Overrides the request decoder.
Signs and sends an AWS Request.
Sends an AWS Request wihtout signing it.
HTTP request methods.
Request path.
Holds a request body.
MIME type.
Create an empty body.
Create a body with a custom MIME type and the given string as content.
stringBody "text/html" "<html><body><h1>Hello</h1></body></html>"Create a body containing a JSON value.
This will automatically add the Content-Type: application/json header.
Holds an unsigned AWS HTTP request.