Module: HttpLog

Defined in:
lib/http_log.rb,
lib/http_log/engine.rb,
lib/http_log/version.rb,
lib/http_log/middleware.rb,
lib/http_log/http_request.rb,
app/models/http_log/request.rb,
app/controllers/http_log/requests_controller.rb

Defined Under Namespace

Modules: ControllerHelpers Classes: Engine, HttpRequest, Middleware, Request, RequestsController

Constant Summary collapse

VERSION =
"0.2.2"

Class Method Summary collapse

Class Method Details

.callbacksObject



12
13
14
# File 'lib/http_log.rb', line 12

def self.callbacks
  @callbacks ||= []
end

.filter(&block) ⇒ Object



20
21
22
# File 'lib/http_log.rb', line 20

def self.filter(&block)
  filters << block
end

.filtersObject



16
17
18
# File 'lib/http_log.rb', line 16

def self.filters
  @filters ||= []
end

.with_request(&block) ⇒ Object



8
9
10
# File 'lib/http_log.rb', line 8

def self.with_request(&block)
  callbacks << block
end