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.30 pages/spec.rhtml
hayabusa-0.0.28 pages/spec.rhtml
hayabusa-0.0.25 pages/spec.rhtml
hayabusa-0.0.24 pages/spec.rhtml
hayabusa-0.0.23 pages/spec.rhtml
hayabusa-0.0.22 pages/spec.rhtml
hayabusa-0.0.20 pages/spec.rhtml
hayabusa-0.0.19 pages/spec.rhtml
hayabusa-0.0.18 pages/spec.rhtml
hayabusa-0.0.17 pages/spec.rhtml
hayabusa-0.0.16 pages/spec.rhtml
hayabusa-0.0.15 pages/spec.rhtml
hayabusa-0.0.14 pages/spec.rhtml
hayabusa-0.0.13 pages/spec.rhtml
hayabusa-0.0.12 pages/spec.rhtml
hayabusa-0.0.11 pages/spec.rhtml
hayabusa-0.0.10 pages/spec.rhtml
hayabusa-0.0.9 pages/spec.rhtml
hayabusa-0.0.8 pages/spec.rhtml
hayabusa-0.0.6 pages/spec.rhtml