Module: Lotus::Action::Rack

Defined in:
lib/lotus/action/rack.rb,
lib/lotus/action/rack/file.rb,
lib/lotus/action/rack/callable.rb

Overview

Rack integration API

Since:

  • 0.1.0

Defined Under Namespace

Modules: Callable, ClassMethods Classes: File

Constant Summary collapse

DEFAULT_RESPONSE_CODE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The default HTTP response code

Since:

  • 0.1.0

200
DEFAULT_RESPONSE_BODY =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The default Rack response body

Since:

  • 0.1.0

[]
DEFAULT_REQUEST_ID_LENGTH =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The default HTTP Request ID length

See Also:

  • #request_id

Since:

  • 0.3.0

16
REQUEST_METHOD =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

The request method

Since:

  • 0.3.2

'REQUEST_METHOD'.freeze
HEAD =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

HEAD request

Since:

  • 0.3.2

'HEAD'.freeze

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Override Ruby’s hook for modules. It includes basic Lotus::Action modules to the given class.

Parameters:

  • base (Class)

    the target action

See Also:

Since:

  • 0.1.0



53
54
55
# File 'lib/lotus/action/rack.rb', line 53

def self.included(base)
  base.extend ClassMethods
end