Sign in
apache
/
openwhisk-runtime-ruby
/
be869330798162e174433cfe98af3576741dcce3
/
.
/
core
/
ruby2.5Action
/
rackapp
/
response
/
success.rb
blob: 9d3efb256a438cfb1aa983ee6f1a33ffcfa372c2 [
file
] [
log
] [
blame
]
class
SuccessResponse
<
Rack
::
Response
def
initialize
(
body
=
[],
status
=
200
,
header
=
{})
super
body
.
to_json
,
status
,
header
.
merge
({
'Content-Type'
=>
'application/json'
})
end
end