-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare Elm code generator for use of AuthProtect
Using AuthProtect to implement custom authentication for an API won't work with servant-elm (see haskell-servant/servant-elm#11). This change is simlilar to the one suggested in that issue, but rather than doing nothing, it adds an Authorization header to the request (which results in another parameter being passed into the generated API request functions to set the header value). Elm doesn't provide a way to modify the request data once it has been created so without this it would be impossible to set a header.
- Loading branch information
Showing
2 changed files
with
24 additions
and
3 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