Spaceboy.Middleware behaviour (Spaceboy v0.1.1) View Source
Spaceboy server middleware, roughly similar to Plugs plug
Middleware has to implement two functions init/1 and call/2. For example implementation of
middleware please look at Spaceboy.Middleware.Logger module.
Link to this section Summary
Link to this section Types
Specs
opts() :: Keyword.t()
Link to this section Callbacks
Specs
call(conn :: Spaceboy.Conn.t(), opts()) :: Spaceboy.Conn.t()