method
setup_res
v1_8_7_330 -
Show latest stable
- Class:
SOAP::RPC::SOAPlet
setup_res(conn_data, req, res)private
No documentation available.
# File lib/soap/rpc/soaplet.rb, line 116
def setup_res(conn_data, req, res)
res['content-type'] = conn_data.send_contenttype
if conn_data.is_fault
res.status = WEBrick::HTTPStatus::RC_INTERNAL_SERVER_ERROR
end
if outstring = encode_gzip(req, conn_data.send_string)
res['content-encoding'] = 'gzip'
res['content-length'] = outstring.size
res.body = outstring
else
res.body = conn_data.send_string
end
end