wolfadex / elm-open-api-cli

A CLI tool for generating Elm modules from Open API specs.
https://www.npmjs.com/package/elm-open-api
25 stars 6 forks source link

Support for custom headers #120

Open myrho opened 1 month ago

myrho commented 1 month ago

Is there a way send custom headers with the generated Cmd/Task endpoints? For instance for cache control, authentication ...

miniBill commented 1 month ago

With regards to authentication, you can specify it in the openapi spec and then the generator will make the functions take additional parameters.

For cache control, the tool doesn't currently support it.

@wolfadex now that we have the more granular effects, we could have elm/http.taskRecord?

wolfadex commented 1 month ago

Oh! We can do that now!! Will add it to the list of things to do