Ruby / Roda - Web Framework / Plugins / :response_request


Introduction

The :response_request plugin gives the response access to the related request instance via the #request method.

Example:

plugin :response_request

InstanceMethods

Set the response's request to the current request.

def initialize(env)
    super
    @_response.request = @_request
  end

ResponseMethods

#.request

The request related to this response. attr_accessor :request