module HttpStub::Server::Application::RequestSupport
Constants
- STUBBABLE_REQUEST_METHODS
Attributes
http_stub_request[R]
Public Class Methods
any_request_method(path, opts={}, &block)
click to toggle source
# File lib/http_stub/server/application/request_support.rb, line 25 def self.any_request_method(path, opts={}, &block) STUBBABLE_REQUEST_METHODS.each { |request_method| self.send(request_method, path, opts, &block) } end
included(application)
click to toggle source
# File lib/http_stub/server/application/request_support.rb, line 22 def self.included(application) application.instance_eval do def self.any_request_method(path, opts={}, &block) STUBBABLE_REQUEST_METHODS.each { |request_method| self.send(request_method, path, opts, &block) } end before { establish_http_stub_request } end end
new()
click to toggle source
Calls superclass method
# File lib/http_stub/server/application/request_support.rb, line 13 def initialize super() @request_factory = HttpStub::Server::Request::Factory.new(settings.session_identifier, @server_memory) end
Public Instance Methods
establish_http_stub_request()
click to toggle source
# File lib/http_stub/server/application/request_support.rb, line 18 def establish_http_stub_request @http_stub_request = @request_factory.create(request, params, logger) end