Skip to content

Return :ok/:error tuples by default  #163

Closed
@teamon

Description

@teamon

{:ok, env} - after successful HTTP transaction (with status, headers, body)
{:error, reason} - all connection errors, nxdomain, connrefused etc

  • Change the return type to {:ok, Tesla.Env.t} | {:error, error}
  • Update README
  • Update all docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions