Flowdock
method

setup_res

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: SOAP::RPC::SOAPlet
setup_res(conn_data, req, res) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# 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
Register or log in to add new notes.