Sign in
apache
/
openwhisk-runtime-ruby
/
3619b81371d8ac5d2828ecc92c6f2d43eb2ca3e8
/
.
/
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