MergeHRISClient.RequestBuilder.ensure_body

You're seeing just the function ensure_body, go back to MergeHRISClient.RequestBuilder module for more information.

Specs

ensure_body(map()) :: map()

Due to a bug in httpc, POST, PATCH and PUT requests will fail, if the body is empty

This function will ensure, that the body param is always set

Parameters

  • request (Map) - Collected request options

Returns

Map