|
42 | 42 | -spec get(Service :: string(),
|
43 | 43 | Path :: path()) -> result().
|
44 | 44 | %% @doc Perform a HTTP GET request to the AWS API for the specified service. The
|
45 |
| -%% response will automatically be decoded if it is either in JSON or XML |
| 45 | +%% response will automatically be decoded if it is either in JSON, or XML |
46 | 46 | %% format.
|
47 | 47 | %% @end
|
48 | 48 | get(Service, Path) ->
|
@@ -243,7 +243,7 @@ handle_msg(_Request, State) ->
|
243 | 243 | -spec endpoint(State :: state(), Host :: string(),
|
244 | 244 | Service :: string(), Path :: string()) -> string().
|
245 | 245 | %% @doc Return the endpoint URL, either by constructing it with the service
|
246 |
| -%% information passed in or by using the passed in Host value. |
| 246 | +%% information passed in, or by using the passed in Host value. |
247 | 247 | %% @ednd
|
248 | 248 | endpoint(#state{region = Region}, undefined, Service, Path) ->
|
249 | 249 | lists:flatten(["https://", endpoint_host(Region, Service), Path]);
|
@@ -354,9 +354,8 @@ local_time() ->
|
354 | 354 |
|
355 | 355 |
|
356 | 356 | -spec maybe_decode_body(ContentType :: {nonempty_string(), nonempty_string()}, Body :: body()) -> list() | body().
|
357 |
| -%% @doc Attempt to decode the response body based upon the mime type that is |
358 |
| -%% presented. |
359 |
| -%% @end. |
| 357 | +%% @doc Attempt to decode the response body by its MIME |
| 358 | +%% @end |
360 | 359 | maybe_decode_body({"application", "x-amz-json-1.0"}, Body) ->
|
361 | 360 | rabbitmq_aws_json:decode(Body);
|
362 | 361 | maybe_decode_body({"application", "json"}, Body) ->
|
|
0 commit comments