servant-js-0.9.4: Automatically derive javascript functions to query servant webservices.

Safe HaskellNone
LanguageHaskell2010

Servant.JS.Axios

Synopsis

Documentation

data AxiosOptions Source #

Axios configuration type Let you customize the generation using Axios capabilities

Constructors

AxiosOptions 

Fields

defAxiosOptions :: AxiosOptions Source #

Default instance of the AxiosOptions Defines the settings as they are in the Axios documentation by default

axios :: AxiosOptions -> JavaScriptGenerator Source #

Generate regular javacript functions that use the axios library, using default values for CommonGeneratorOptions.

axiosWith :: AxiosOptions -> CommonGeneratorOptions -> JavaScriptGenerator Source #

Generate regular javascript functions that use the axios library.

generateAxiosJS :: AxiosOptions -> AjaxReq -> Text Source #

js codegen using axios library using default options

generateAxiosJSWith :: AxiosOptions -> CommonGeneratorOptions -> AjaxReq -> Text Source #

js codegen using axios library