Module: Langis

Defined in:
lib/langis.rb,
lib/langis/dsl.rb,
lib/langis/sinks.rb,
lib/langis/engine.rb,
lib/langis/rackish.rb,
lib/langis/middleware.rb

Overview

The base Langis module namespace is used to define global constants for this library.

Defined Under Namespace

Modules: Dsl, Engine, Middleware, Rackish, Sinks Classes: LangisError

Constant Summary collapse

INTAKE_KEY =

The key in the Rack-like environment whose value is the intake that received the message.

'langis.intake'
MESSAGE_KEY =

The key in the Rack-like environment whose value is the message that is “pumped” into a Langis engine.

'langis.message'
MESSAGE_TYPE_KEY =

The key in the Rack-like environment whose value is the message type of the message that is pumped into the Langis engine. This is set if the message’s responds to the #message_type method.

'langis.message_type'
X_EXCEPTION =

The key in the Rack-like return headers whose value is the caught exception raised by any middleware or application.

'X-Langis-Exception'
X_FILTERED_BY =

The key in the Rack-like return headers whose value is the name of the middleware that prevented the message from propagating further in the application stack.

'X-Langis-Filtered-By'
X_FILTERED_TYPE =

The key in the Rack-like return headers whose value is the message type that was filtered. This is

'X-Langis-Filtered-Type'
OK =

The application stack has completed its function successfully. This return result doesn’t signify that the end application of the Rack-like stack was called; middleware may have completed its defined function.

200
SERVER_ERROR =

The status message that states that there was an internal error.

500