Module: HttpStub::Server

Defined in:
lib/http_stub/server.rb,
lib/http_stub/server/stub.rb,
lib/http_stub/server/daemon.rb,
lib/http_stub/server/session.rb,
lib/http_stub/server/registry.rb,
lib/http_stub/server/response.rb,
lib/http_stub/server/scenario.rb,
lib/http_stub/server/stub/stub.rb,
lib/http_stub/server/stub/empty.rb,
lib/http_stub/server/memory/memory.rb,
lib/http_stub/server/session/empty.rb,
lib/http_stub/server/stdout_logger.rb,
lib/http_stub/server/stub/registry.rb,
lib/http_stub/server/stub/response.rb,
lib/http_stub/server/stub/triggers.rb,
lib/http_stub/server/scenario/links.rb,
lib/http_stub/server/request/factory.rb,
lib/http_stub/server/request/headers.rb,
lib/http_stub/server/request/request.rb,
lib/http_stub/server/session/session.rb,
lib/http_stub/server/stub/controller.rb,
lib/http_stub/server/stub/match/miss.rb,
lib/http_stub/server/scenario/trigger.rb,
lib/http_stub/server/session/registry.rb,
lib/http_stub/server/stub/match/match.rb,
lib/http_stub/server/stub/match/rules.rb,
lib/http_stub/server/memory/controller.rb,
lib/http_stub/server/scenario/registry.rb,
lib/http_stub/server/scenario/scenario.rb,
lib/http_stub/server/request/parameters.rb,
lib/http_stub/server/session/controller.rb,
lib/http_stub/server/stub/response/body.rb,
lib/http_stub/server/scenario/controller.rb,
lib/http_stub/server/stub/match/rule/uri.rb,
lib/http_stub/server/memory/initial_state.rb,
lib/http_stub/server/stub/match/rule/body.rb,
lib/http_stub/server/stub/response/blocks.rb,
lib/http_stub/server/stub/match/controller.rb,
lib/http_stub/server/stub/response/headers.rb,
lib/http_stub/server/stub/match/rule/method.rb,
lib/http_stub/server/stub/match/rule/truthy.rb,
lib/http_stub/server/stub/response/response.rb,
lib/http_stub/server/application/application.rb,
lib/http_stub/server/application/routes/stub.rb,
lib/http_stub/server/request/sinatra_request.rb,
lib/http_stub/server/stub/match/hash_matcher.rb,
lib/http_stub/server/stub/match/rule/headers.rb,
lib/http_stub/server/stub/response/file_body.rb,
lib/http_stub/server/stub/response/text_body.rb,
lib/http_stub/server/scenario/not_found_error.rb,
lib/http_stub/server/application/routes/memory.rb,
lib/http_stub/server/application/routes/status.rb,
lib/http_stub/server/application/routes/session.rb,
lib/http_stub/server/stub/match/rule/parameters.rb,
lib/http_stub/server/application/request_support.rb,
lib/http_stub/server/application/routes/resource.rb,
lib/http_stub/server/application/routes/scenario.rb,
lib/http_stub/server/session/identifier_strategy.rb,
lib/http_stub/server/stub/match/rule/schema_body.rb,
lib/http_stub/server/stub/match/rule/simple_body.rb,
lib/http_stub/server/stub/match/exact_value_matcher.rb,
lib/http_stub/server/application/session_uri_support.rb,
lib/http_stub/server/stub/match/regexp_value_matcher.rb,
lib/http_stub/server/stub/match/string_value_matcher.rb,
lib/http_stub/server/application/cross_origin_support.rb,
lib/http_stub/server/stub/match/omitted_value_matcher.rb,
lib/http_stub/server/stub/match/rule/json_schema_body.rb,
lib/http_stub/server/application/text_formatting_support.rb

Defined Under Namespace

Modules: Application, Memory, Request, Scenario, Session, Stub Classes: Daemon, Registry, Response, StdoutLogger

Class Method Summary collapse

Class Method Details

.start(configurator) ⇒ Object



101
102
103
104
105
106
# File 'lib/http_stub/server.rb', line 101

def self.start(configurator)
  HttpStub::Server::Application::Application.instance_eval do
    configure(configurator)
    run!
  end
end