Sha256: d7c83dc2f9b52e5ff972dc79fccd93a7e991ab742a28b2922ac5d79abcddb190
Contents?: true
Size: 883 Bytes
Versions: 25
Compression:
Stored size: 883 Bytes
Contents
<% require "json" if _get["choice"] == "test_cookie" _hb.cookie( "name" => "TestCookie", "value" => "TestValue", "expires" => Time.new + 3600 #add an hour ) _hb.cookie( "name" => "TestCookie2", "value" => "TestValue2", "expires" => Time.new + 7200 #add an hour ) _hb.cookie( "name" => "TestCookie3", "value" => "TestValue 3 ", "expires" => Time.new + 1200 ) exit elsif _get["choice"] == "dopostconvert" print JSON.generate(_post) exit end if _get["choice"] == "get_cookies" print JSON.generate(_cookie) exit end _hb.header("TestHeader", "NormalHeader") _hb.header_raw("TestRaw: RawHeader") if _meta["REQUEST_METHOD"] == "POST" print _post["postdata"] elsif _get["choice"] == "check_get_parse" print _get["value"] else print "Test" end %>
Version data entries
25 entries across 25 versions & 1 rubygems
Version | Path |
---|---|
hayabusa-0.0.5 | pages/spec.rhtml |
hayabusa-0.0.4 | pages/spec.rhtml |
hayabusa-0.0.3 | pages/spec.rhtml |
hayabusa-0.0.2 | pages/spec.rhtml |
hayabusa-0.0.1 | pages/spec.rhtml |