Maxwell.Builder.Middleware (maxwell v2.4.0) View Source

Methods for setting up middlewares.

Link to this section Summary

Link to this section Functions

Link to this macro

middleware(middleware, opts \\ [])

View Source (macro)

Build middleware macro.

  • middleware - middleware module, for example: Maxwell.Middleware.Json.
  • opts - options setting in compile time, default is [], for example: [encode_func: &Poison.encode/1].

Examples

  @middleware Middleware.Module, []