tesla v0.8.0 Tesla.Middleware.JSON View Source

Link to this section Summary

Link to this section Functions

Encode and decode response body as JSON

Available options:

  • :decode - decoding function
  • :encode - encoding function
  • :engine - encode/decode engine, e.g Poison or JSX (defaults to Poison)
  • :engine_opts - optional engine options
  • :decode_content_types - list of additional decodable content-types
Link to this function decodable_content_type?(env, opts) View Source