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.1.3"

Class Method Summary collapse

Class Method Details

.callbacksObject



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

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

.filter(&block) ⇒ Object



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

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

.filtersObject



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

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

.with_request(&block) ⇒ Object



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

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