Class: HTTPResponse (WEBrick)

Overview
Module Structure
Class Hierarchy
Constants
HTTPResponse::BUFSIZE
Instance Attributes
HTTPResponse#http_version [R]
HTTPResponse#status [R]
HTTPResponse#header [R]
HTTPResponse#cookies [R]
HTTPResponse#reason_phrase [RW]
HTTPResponse#body [RW]
HTTPResponse#request_method [RW]
HTTPResponse#request_uri [RW]
HTTPResponse#request_http_version [RW]
HTTPResponse#filename [RW]
HTTPResponse#keep_alive [RW]
HTTPResponse#config [R]
HTTPResponse#sent_size [R]
Instance Methods
HTTPResponse#initialize / 1
HTTPResponse#status_line
HTTPResponse#status= / 1
HTTPResponse#[] / 1
HTTPResponse#[]= / 2
HTTPResponse#content_length
HTTPResponse#content_length= / 1
HTTPResponse#content_type
HTTPResponse#content_type= / 1
HTTPResponse#each
HTTPResponse#chunked?
HTTPResponse#chunked= / 1
HTTPResponse#keep_alive?
HTTPResponse#send_response / 1
HTTPResponse#setup_header
HTTPResponse#send_header / 1
HTTPResponse#send_body / 1
HTTPResponse#to_s
HTTPResponse#set_redirect / 2
HTTPResponse#set_error / 2
HTTPResponse#send_body_io / 1
HTTPResponse#send_body_string / 1
HTTPResponse#_send_file / 4
HTTPResponse#_write_data / 2
is a submodule of
module: WEBrick   
has modular siblings
class: ServerError   
class: SimpleServer   
class: Daemon   
class: GenericServer   
class: HTTPServerError   
class: HTTPServer   
module: HTTPServlet   
class: HTTPRequest   
module: HTTPStatus   
module: HTTPUtils   
class: HTTPVersion   
module: HTTPAuth   
module: Config   
module: Utils   
class: CGI   
class: Cookie   
module: HTMLUtils   
class: HTTPProxyServer   
class: BasicLog   
class: Log   
module: AccessLog   
inherits from
  Object ( Builtin-Module )
has class siblings
  Exception ( Builtin-Module )
  String ( Builtin-Module )
  SimpleServer ( WEBrick )
  Daemon ( WEBrick )
  GenericServer ( WEBrick )
  MountTable ( WEBrick::HTTPServer )
  AbstractServlet ( WEBrick::HTTPServlet )
  HTTPRequest ( WEBrick )
  HTTPVersion ( WEBrick )
  BasicAuth ( WEBrick::HTTPAuth )
  DigestAuth ( WEBrick::HTTPAuth )
  Htdigest ( WEBrick::HTTPAuth )
  Htgroup ( WEBrick::HTTPAuth )
  Htpasswd ( WEBrick::HTTPAuth )
  CGI ( WEBrick )
  Socket ( WEBrick::CGI )
  Cookie ( WEBrick )
  BasicLog ( WEBrick )
has properties
constant: BUFSIZE   
attribute: http_version [R]   
attribute: status [R]   
attribute: header [R]   
attribute: cookies [R]   
attribute: reason_phrase [RW]   
attribute: body [RW]   
attribute: request_method [RW]   
attribute: request_uri [RW]   
attribute: request_http_version [RW]   
attribute: filename [RW]   
attribute: keep_alive [RW]   
attribute: config [R]   
attribute: sent_size [R]   
method: initialize / 1   
method: status_line   
method: status= / 1   
method: [] / 1   
method: []= / 2   
method: content_length   
method: content_length= / 1   
method: content_type   
method: content_type= / 1   
method: each   
method: chunked?   
method: chunked= / 1   
method: keep_alive?   
method: send_response / 1   
method: setup_header   
method: send_header / 1   
method: send_body / 1   
method: to_s   
method: set_redirect / 2   
method: set_error / 2   
method: send_body_io / 1   
method: send_body_string / 1   
method: _send_file / 4   
method: _write_data / 2   
is defined at
#18 in webrick/httpresponse.rb  

Overview

Module Structure

  module: <Toplevel Module>
  module: <Built-in Module>
class: Exception     
class: String     
  module: WEBrick
  class: ServerError
  class: SimpleServer
  class: Daemon
  class: GenericServer
  class: HTTPServerError
  class: HTTPServer
class: MountTable     
  module: HTTPServlet
class: AbstractServlet     
  class: HTTPRequest
✗ class: HTTPResponse
  module: HTTPStatus
  module: HTTPUtils
  class: HTTPVersion
  module: HTTPAuth
class: BasicAuth     
class: DigestAuth     
class: Htdigest     
class: Htgroup     
class: Htpasswd     
  module: Config
  module: Utils
  class: CGI
class: Socket     
  class: Cookie
  module: HTMLUtils
  class: HTTPProxyServer
  class: BasicLog
  class: Log
  module: AccessLog

Class Hierarchy

Object ( Builtin-Module )
Exception ( Builtin-Module )
String ( Builtin-Module )
SimpleServer ( WEBrick )
Daemon ( WEBrick )
GenericServer ( WEBrick )
HTTPServer ( WEBrick )
  HTTPProxyServer     
MountTable ( WEBrick::HTTPServer )
AbstractServlet ( WEBrick::HTTPServlet )
HTTPRequest ( WEBrick )
HTTPResponse ( WEBrick )
has properties
constant: BUFSIZE   
attribute: http_version [R]   
attribute: status [R]   
attribute: header [R]   
attribute: cookies [R]   
attribute: reason_phrase [RW]   
attribute: body [RW]   
attribute: request_method [RW]   
attribute: request_uri [RW]   
attribute: request_http_version [RW]   
attribute: filename [RW]   
attribute: keep_alive [RW]   
attribute: config [R]   
attribute: sent_size [R]   
method: initialize / 1   
method: status_line   
method: status= / 1   
method: [] / 1   
method: []= / 2   
method: content_length   
method: content_length= / 1   
method: content_type   
method: content_type= / 1   
method: each   
method: chunked?   
method: chunked= / 1   
method: keep_alive?   
method: send_response / 1   
method: setup_header   
method: send_header / 1   
method: send_body / 1   
method: to_s   
method: set_redirect / 2   
method: set_error / 2   
method: send_body_io / 1   
method: send_body_string / 1   
method: _send_file / 4   
method: _write_data / 2   
HTTPVersion ( WEBrick )
BasicAuth ( WEBrick::HTTPAuth )
DigestAuth ( WEBrick::HTTPAuth )
Htdigest ( WEBrick::HTTPAuth )
Htgroup ( WEBrick::HTTPAuth )
Htpasswd ( WEBrick::HTTPAuth )
CGI ( WEBrick )
Socket ( WEBrick::CGI )
Cookie ( WEBrick )
BasicLog ( WEBrick )
  Log     

Constants

HTTPResponse::BUFSIZE

#19 in webrick/httpresponse.rb

BUFSIZE = 1024*4   

Instance Attributes

HTTPResponse#http_version [R]

#21 in webrick/httpresponse.rb

HTTPResponse#status [R]

#21 in webrick/httpresponse.rb

HTTPResponse#header [R]

#21 in webrick/httpresponse.rb

HTTPResponse#cookies [R]

#22 in webrick/httpresponse.rb

HTTPResponse#reason_phrase [RW]

#23 in webrick/httpresponse.rb

HTTPResponse#body [RW]

#24 in webrick/httpresponse.rb

HTTPResponse#request_method [RW]

#26 in webrick/httpresponse.rb

HTTPResponse#request_uri [RW]

#26 in webrick/httpresponse.rb

HTTPResponse#request_http_version [RW]

#26 in webrick/httpresponse.rb

HTTPResponse#filename [RW]

#27 in webrick/httpresponse.rb

HTTPResponse#keep_alive [RW]

#28 in webrick/httpresponse.rb

HTTPResponse#config [R]

#29 in webrick/httpresponse.rb

HTTPResponse#sent_size [R]

#29 in webrick/httpresponse.rb

Instance Methods

HTTPResponse#initialize / 1

#31 in webrick/httpresponse.rb

initialize ( config )

HTTPResponse#status_line

#49 in webrick/httpresponse.rb

status_line

HTTPResponse#status= / 1

#53 in webrick/httpresponse.rb

status= ( status )

HTTPResponse#[] / 1

#58 in webrick/httpresponse.rb

[] ( field )

HTTPResponse#[]= / 2

#62 in webrick/httpresponse.rb

[]= ( field ,
  value )

HTTPResponse#content_length

#66 in webrick/httpresponse.rb

content_length

HTTPResponse#content_length= / 1

#72 in webrick/httpresponse.rb

content_length= ( len )

HTTPResponse#content_type

#76 in webrick/httpresponse.rb

content_type

HTTPResponse#content_type= / 1

#80 in webrick/httpresponse.rb

content_type= ( type )

HTTPResponse#each

#84 in webrick/httpresponse.rb

each

HTTPResponse#chunked?

#88 in webrick/httpresponse.rb

chunked?

HTTPResponse#chunked= / 1

#92 in webrick/httpresponse.rb

chunked= ( val )

HTTPResponse#keep_alive?

#96 in webrick/httpresponse.rb

keep_alive?

HTTPResponse#send_response / 1

#100 in webrick/httpresponse.rb

send_response ( socket )

HTTPResponse#setup_header

#114 in webrick/httpresponse.rb

setup_header

HTTPResponse#send_header / 1

#169 in webrick/httpresponse.rb

send_header ( socket )

HTTPResponse#send_body / 1

#184 in webrick/httpresponse.rb

send_body ( socket )

HTTPResponse#to_s

#191 in webrick/httpresponse.rb

to_s

HTTPResponse#set_redirect / 2

#197 in webrick/httpresponse.rb

set_redirect ( status ,
  url )

HTTPResponse#set_error / 2

#203 in webrick/httpresponse.rb

set_error ( ex ,
  backtrace=false )

HTTPResponse#send_body_io / 1

#256 in webrick/httpresponse.rb

send_body_io ( socket )

HTTPResponse#send_body_string / 1

#280 in webrick/httpresponse.rb

send_body_string ( socket )

HTTPResponse#_send_file / 4

#302 in webrick/httpresponse.rb

_send_file ( output ,
  input ,
  offset ,
  size )

HTTPResponse#_write_data / 2

#323 in webrick/httpresponse.rb

_write_data ( socket ,
  data )