Class: SockJS::Examples::ProtocolConformanceTest::MyHelloWorld
- Inherits:
-
Object
- Object
- SockJS::Examples::ProtocolConformanceTest::MyHelloWorld
- Defined in:
- lib/sockjs/examples/protocol_conformance_test.rb
Constant Summary collapse
- BODY =
["<html>\n <head>\n <title>Hello World!</title>\n </head>\n\n <body>\n <h1>Hello World!</h1>\n <p>\n This is the app, not SockJS.\n </p>\n </body>\n</html>\n"].freeze
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
24 25 26 |
# File 'lib/sockjs/examples/protocol_conformance_test.rb', line 24 def call(env) [200, {"Content-Type" => "text/html; charset=UTF-8", "Content-Length" => BODY.join("").bytesize.to_s}, BODY] end |