module Goliath::Rack::SimpleAroundware

def accept_response(handle, resp_succ, resp)

* call the setter for that handle if any (on receipt of :shortened_url,
On receipt of an async result,
def accept_response(handle, resp_succ, resp)
  self.downstream_resp = resp
end

def downstream_resp=(status_headers_body)

Virtual setter for the downstream middleware/endpoint response
def downstream_resp=(status_headers_body)
  @status, @headers, @body = status_headers_body
end

def initialize(env)

Returns:
  • (Goliath::Rack::SimpleAroundware) -

Parameters:
  • env (Goliath::Env) -- The request environment
def initialize(env)
  @env = env
end

def post_process

Returns:
  • (Array) - array contains [status, headers, body]
def post_process
  [status, headers, body]
end

def pre_process

Returns:
  • (Array) - array contains [status, headers, body]
def pre_process
  Goliath::Connection::AsyncResponse
end