Created
November 2, 2017 06:24
-
-
Save noncom/35efdad34982292fab6e7a2cea3286af to your computer and use it in GitHub Desktop.
fix
This file contains hidden or 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
| val request: Request = | |
| when (method as String) { | |
| "GET" -> { | |
| Fuel.get("") | |
| } | |
| "POST" -> { | |
| Fuel.post("") | |
| } | |
| else -> Fuel.get("") | |
| // Either.Left( | |
| // CommandFailure(MessageSpecFailure(this, FailureDescriptionSimpleText("<${method}> is not a valid http method")))).bind() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment