-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored ResponseHandler, for new Response.t
- Updated dependency `xml_builder`. The new `generate/2` provides a `format: :none | :indented` option. - `:format` is set to `:none` to produce "minified" network requests. * This is almost a complete rewrite to reduce code duplication. - check_response_type() was acting as guard that matched only against some response types. It did not handle the scenario when a non-supported response would be obtained. It really served no purpose - check_response_type -> extract_gateway_response + This guards as well as fetches, previously the fetch was being done multiple times. * Moved all response handling inside the `ResponseHandler`. * Since we now have a struct, and want to deprecate `:success`, `Response.success/1` and `Response.error/1`, helpers now act on structs. * `errorCode` and `errorText` are used to build `:reason`. + Removed pointless asserts from tests.
- Loading branch information
Showing
4 changed files
with
96 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.