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

Version Path
knjappserver-0.0.30 lib/pages/spec.rhtml
knjappserver-0.0.29 lib/pages/spec.rhtml
knjappserver-0.0.28 lib/pages/spec.rhtml
knjappserver-0.0.26 lib/pages/spec.rhtml
knjappserver-0.0.25 lib/pages/spec.rhtml
knjappserver-0.0.24 lib/pages/spec.rhtml
knjappserver-0.0.23 lib/pages/spec.rhtml
knjappserver-0.0.22 lib/pages/spec.rhtml
knjappserver-0.0.21 lib/pages/spec.rhtml
knjappserver-0.0.20 lib/pages/spec.rhtml
knjappserver-0.0.19 lib/pages/spec.rhtml
knjappserver-0.0.18 lib/pages/spec.rhtml
knjappserver-0.0.17 lib/pages/spec.rhtml