hn_ex v0.1.1 HN.MiddleWare.Decode View Source

Link to this section Summary

Functions

Invoked when a requset runs.

Link to this section Functions

Link to this function

call(env, next, options)

View Source

Invoked when a requset runs.

  • (optionally) read and/or writes request data
  • calls Tesla.run/2
  • (optionally) read and/or writes response data

Arguments

  • env - Tesla.Env struct that stores request/response data
  • next - middlewares that should be called after current one
  • options - middleware options provided by user

Callback implementation for Tesla.Middleware.call/3.