class HTTP::Response
Superclass hierarchy
Object
Reference
HTTP::Response
Defined in:
Class Method Summary
.default_status_message_for
(status_code)
.error
(content_type, body)
.from_io
(io)
.from_io
(io, &block)
.not_found
.ok
(content_type, body)
.unauthorized
.new
(status_code, body = nil, headers = Headers.new : Headers, status_message = nil, version = "HTTP/1.1", body_io = nil)
Instance Method Summary
#body
#body?
#body_io
#body_io?
#headers
#keep_alive?
#status_code
#status_message
#to_io
(io)
#upgrade_handler
#upgrade_handler=
(upgrade_handler)
#version
Class Method Detail
def self.
default_status_message_for
(status_code)
def self.
error
(content_type, body)
def self.
from_io
(io)
def self.
from_io
(io, &block)
def self.
not_found
def self.
ok
(content_type, body)
def self.
unauthorized
def self.
new
(status_code, body =
nil
, headers =
Headers
.
new
:
Headers
, status_message =
nil
, version =
"HTTP/1.1"
, body_io =
nil
)
Instance Method Detail
def
body
def
body?
def
body_io
def
body_io?
def
headers
def
keep_alive?
def
status_code
def
status_message
def
to_io
(io)
def
upgrade_handler
def
upgrade_handler=
(upgrade_handler)
def
version