Class: Rack::MockSession

Class | Rack::MockSession
In: | lib/rack/mock_session.rb
Parent: | Object

### Methods

clear_cookies cookie_jar last_request last_response new request set_cookie

### Attributes

cookie_jar | [W] |
last_response | [R] |

### Public Class methods

new(app, default_host = Rack::Test::DEFAULT_HOST)

### Public Instance methods

clear_cookies()
cookie_jar()
last_request()

Return the last request issued in the session. Raises an error if no requests have been sent yet.

last_response()

Return the last response received in the session. Raises an error if no requests have been sent yet.

request(uri, env)
set_cookie(cookie, uri = nil)

[Validate]