Class | Rack::Test::Session |
In: |
lib/rack/test.rb
|
Parent: | Object |
Set the username and password for HTTP Basic authorization, to be included in subsequent requests in the HTTP_AUTHORIZATION header.
Example:
basic_authorize "bryan", "secret"
Rack::Test will not follow any redirects automatically. This method will follow the redirect returned in the last response. If the last response was not a redirect, an error will be raised.