Class: RightDevelop::Testing::Server::MightApi::App::Playback

Inherits:
Base
  • Object
show all
Defined in:
lib/right_develop/testing/servers/might_api/app/playback.rb

Constant Summary collapse

STATE_FILE_NAME =
'playback_state.yml'

Constants inherited from Base

Base::MAX_REDIRECTS

Instance Attribute Summary

Attributes inherited from Base

#config, #logger, #state_file_path

Instance Method Summary collapse

Methods inherited from Base

#call, #find_route, #internal_server_error, #normalize_rack_response_headers, #proxy, #proxy_headers

Constructor Details

#initializePlayback

Returns a new instance of Playback.



30
31
32
# File 'lib/right_develop/testing/servers/might_api/app/playback.rb', line 30

def initialize
  super(STATE_FILE_NAME)
end

Instance Method Details

#handle_request(env, verb, uri, headers, body) ⇒ Object



35
36
37
38
39
40
41
42
43
# File 'lib/right_develop/testing/servers/might_api/app/playback.rb', line 35

def handle_request(env, verb, uri, headers, body)
  proxy(
    ::RightDevelop::Testing::Client::Rest::Request::Playback,
    verb,
    uri,
    headers,
    body,
    config.throttle)
end