elm-open-api-cli icon indicating copy to clipboard operation
elm-open-api-cli copied to clipboard

Support for custom headers

Open myrho opened this issue 1 year ago • 3 comments

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

myrho avatar Jul 22 '24 16:07 myrho

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?

miniBill avatar Jul 22 '24 18:07 miniBill

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

wolfadex avatar Jul 22 '24 18:07 wolfadex

@myrho you can now use elm/http.taskrecord as the effect type and change the resulting record

miniBill avatar Oct 11 '25 23:10 miniBill