Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data AxiosOptions = AxiosOptions {
- withCredentials :: !Bool
- xsrfCookieName :: !(Maybe Text)
- xsrfHeaderName :: !(Maybe Text)
- defAxiosOptions :: AxiosOptions
- axios :: AxiosOptions -> JavaScriptGenerator
- axiosWith :: AxiosOptions -> CommonGeneratorOptions -> JavaScriptGenerator
- generateAxiosJS :: AxiosOptions -> AjaxReq -> Text
- generateAxiosJSWith :: AxiosOptions -> CommonGeneratorOptions -> AjaxReq -> Text
Documentation
data AxiosOptions Source #
Axios configuration
type
Let you customize the generation using Axios capabilities
AxiosOptions | |
|
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