Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuration of request options #12

Merged
merged 1 commit into from
May 23, 2017
Merged

Allow configuration of request options #12

merged 1 commit into from
May 23, 2017

Conversation

pablo-co
Copy link
Owner

In some cases it might be useful being able to specify the options that
are sent to hackney such as the request timeout. This change introduces
support for such cases through the configuration hash.

config = Map.put(@config, :request_options, request_options)

assert_raise Bamboo.PostmarkAdapter.ApiError, fn ->
new_email() |> PostmarkAdapter.deliver(config)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a function call when a pipeline is only one function long

In some cases it might be useful being able to specify the options that
are sent to hackney such as the request timeout. This change introduces
support for such cases through the configuration hash.
@pablo-co
Copy link
Owner Author

Ebert has finished reviewing this Pull Request and has found:

  • 6 fixed issues! 🎉

You can see more details about this review at https://ebertapp.io/github/pablo-co/bamboo_postmark/pulls/12.

@pablo-co pablo-co mentioned this pull request May 23, 2017
@pablo-co pablo-co merged commit 10bd20e into master May 23, 2017
@pablo-co pablo-co deleted the request-config branch May 23, 2017 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant