Sha256: 61554a93d2f8c6409a8c21bbded745ed612982a78f154ef83388d86f9305c322
Contents?: true
Size: 786 Bytes
Versions: 13
Compression:
Stored size: 786 Bytes
Contents
<% if _get["choice"] == "test_cookie" _kas.cookie( "name" => "TestCookie", "value" => "TestValue", "expires" => Time.new + 3600 #add an hour ) _kas.cookie( "name" => "TestCookie2", "value" => "TestValue2", "expires" => Time.new + 7200 #add an hour ) _kas.cookie( "name" => "TestCookie3", "value" => "TestValue 3 ", "expires" => Time.new + 1200 ) exit end if _get["choice"] == "get_cookies" print JSON.generate(_cookie) exit end _kas.header("TestHeader", "NormalHeader") _kas.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
13 entries across 13 versions & 1 rubygems