0
我想設置一個cookie與Rack::MockRequest
如何在Rack :: MockRequest中設置Cookie?
cookie = "_session_id=123"
client = Rack::MockRequest.new(@app)
#something like this?
response = client.get("/", "Cookie" => cookie)
如何做到這一點提出請求時?
的感謝!你能回答這個嗎? http://stackoverflow.com/questions/23603133/how-to-i-specify-that-the-protocol-is-https-in-a-rackmockrequest –