Module: Lennarb

Defined in:
lib/lennarb.rb,
lib/lennarb/app.rb,
lib/lennarb/config.rb,
lib/lennarb/errors.rb,
lib/lennarb/routes.rb,
lib/lennarb/request.rb,
lib/lennarb/version.rb,
lib/lennarb/response.rb,
lib/lennarb/constansts.rb,
lib/lennarb/route_node.rb,
lib/lennarb/application.rb,
lib/lennarb/environment.rb,
lib/lennarb/request_handler.rb,
lib/lennarb/middleware_stack.rb,
lib/lennarb/application/request_handler.rb

Overview

:nodoc:

Defined Under Namespace

Classes: App, Application, Config, Environment, MiddlewareStack, Request, RequestHandler, Response, RouteNode, Routes

Constant Summary collapse

Error =

Lite implementation of app.

Class.new(StandardError)
DuplicateRouteError =

This error is raised whenever the app is initialized more than once.

Class.new(StandardError)
MissingEnvironmentVariable =

This error is raised whenever the app is initialized more than once.

Class.new(StandardError)
MissingCallable =

This error is raised whenever the app is initialized more than once.

Class.new(StandardError)
VERSION =

:nodoc:

"1.4.1"
RACK_LENNA_APP =

The root app directory of the app.

"lennarb.app"
RACK_LENNA_BASE =

The application base for the standard application

"lennarb.base"
ENV_NAMES =

The current environment. Defaults to “development”.

%w[LENNA_ENV APP_ENV RACK_ENV]
HTTP_METHODS =

The HTTP methods.

%i[GET POST PUT PATCH DELETE HEAD OPTIONS]
CONTENT_TYPE =

The HTTP status codes.

{HTML: "text/html", TEXT: "text/plain", JSON: "application/json"}
NAMES =

The current environment. Defaults to “development”.

%i[development test production local]