View Source Phoenix (Phoenix v1.7.11)

This is the documentation for the Phoenix project.

To get started, see our overview guides.

Summary

Functions

Returns the configured JSON encoding library for Phoenix.

Returns the :plug_init_mode that controls when plugs are initialized.

Functions

Returns the configured JSON encoding library for Phoenix.

To customize the JSON library, including the following in your config/config.exs:

config :phoenix, :json_library, AlternativeJsonLibrary

Returns the :plug_init_mode that controls when plugs are initialized.

We recommend to set it to :runtime in development for compilation time improvements. It must be :compile in production (the default).

This option is passed as the :init_mode to Plug.Builder.compile/3.