Flowdock
method

http_resp

Importance_0
Ruby latest stable (v1_9_3_392) - 0 notes - Class: HttpServer
http_resp(status_code, status_message=nil, header=nil, body=nil) private

No documentation

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

Hide source
# File lib/xmlrpc/httpserver.rb, line 128
  def http_resp(status_code, status_message=nil, header=nil, body=nil)
    status_message ||= StatusCodeMapping[status_code]

    str = ""
    str << "#{HTTP_PROTO} #{status_code} #{status_message}" << CRLF
    http_header(header).writeTo(str)
    str << CRLF
    str << body unless body.nil?
    str
  end
Register or log in to add new notes.