Class: Rack::Anystatus::Endpoint
- Inherits:
-
Object
- Object
- Rack::Anystatus::Endpoint
- Defined in:
- lib/rack/anystatus/endpoint.rb
Constant Summary collapse
- F =
::File
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(status_code, path) ⇒ Endpoint
constructor
A new instance of Endpoint.
Constructor Details
Instance Method Details
#call(env) ⇒ Object
12 13 14 |
# File 'lib/rack/anystatus/endpoint.rb', line 12 def call(env) [@status_code, {'Content-Type' => 'text/html', 'Content-Length' => @length}, [@content]] end |