lib/rack/app/endpoint/executor.rb in rack-app-5.6.0 vs lib/rack/app/endpoint/executor.rb in rack-app-5.7.0.rc
- old
+ new
@@ -1,9 +1,10 @@
class Rack::App::Endpoint::Executor
def initialize(endpoint_properties)
@endpoint_properties = endpoint_properties
+ @endpoint_properties.endpoint_method_name
end
def call(env)
return catch(:rack_response){ execute(env) }.finish
end
@@ -23,10 +24,9 @@
evaluated_value
end
end
EXTNAME = ::Rack::App::Constants::ENV::EXTNAME
- CONTENT_TYPE = ::Rack::App::Constants::HTTP::Headers::CONTENT_TYPE
def set_response_body(handler, response_body)
extname = handler.request.env[EXTNAME]
handler.response.headers.merge!(@endpoint_properties.serializer.response_headers_for(extname))
handler.response.write(@endpoint_properties.serializer.serialize(extname, response_body))