SubspaceProductAPI.RequestBuilder.ensure_body

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

ensure_body(request)

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