Subversion Info

Rev
437
Last Checked In
2008-03-28 00:49:20 (2 weeks ago)
Checked in by
deveiant

Parent

Methods

Class Index

Quicksearch

Arrow::Response

An HTTP response class.

Constants

SVNRev
SVN Revision
SVNId
SVN Id
DelegatedMethods
The Array of method names to delegate to the request object

Attributes

errHeaders[R]
The Apache::Table of HTTP headers which will be sent even when an error occurs, and which persist across internal redirects.
headers[R]
The Apache::Table of response HTTP headers
request[R]
The Apache::Request object

Public Class Methods

new( request ) click to toggle source

Create a new Arrow::Response object that will reply to the given request (an Apache::Request object).

    # File /Users/ged/source/ruby/Arrow/lib/arrow/response.rb, line 59
59:     def initialize( request )
60:         @request = request
61:         @headers = request.headers_out
62:         @errHeaders = request.err_headers_out
63: 
64:         super()
65:     end

secsequence

--- SEC00095

seccomment

--- ""

attributes

--- 
- name: errHeaders
  rw: R
  a_desc: |+
    
    The <a href="../Apache/Table.html">Apache::Table</a> of HTTP headers which
    will be sent even when an error occurs, and which persist across internal
    redirects.
    
- name: headers
  rw: R
  a_desc: |+
    
    The <a href="../Apache/Table.html">Apache::Table</a> of response HTTP
    headers
    
- name: request
  rw: R
  a_desc: |+
    
    The <a href="../Apache/Request.html">Apache::Request</a> object
    

method_list

--- 
- methods: 
  - visibility: public
    aref: M000373
    name: new
    sourcecode: "    <span class=\"ruby-comment cmt\"># File /Users/ged/source/ruby/Arrow/lib/arrow/response.rb, line 59</span>\n\
      59:     <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">initialize</span>( <span class=\"ruby-identifier\">request</span> )\n\
      60:         <span class=\"ruby-ivar\">@request</span> = <span class=\"ruby-identifier\">request</span>\n\
      61:         <span class=\"ruby-ivar\">@headers</span> = <span class=\"ruby-identifier\">request</span>.<span class=\"ruby-identifier\">headers_out</span>\n\
      62:         <span class=\"ruby-ivar\">@errHeaders</span> = <span class=\"ruby-identifier\">request</span>.<span class=\"ruby-identifier\">err_headers_out</span>\n\
      63: \n\
      64:         <span class=\"ruby-keyword kw\">super</span>()\n\
      65:     <span class=\"ruby-keyword kw\">end</span>"
    m_desc: |-
      <p>
      Create a <a href="Response.html#M000373">new</a> <a
      href="Response.html">Arrow::Response</a> object that will reply to the
      given <tt>request</tt> (an <a
      href="../Apache/Request.html">Apache::Request</a> object).
      </p>
    params: ( request )
  category: Class
  type: Public

sectitle

--- 

constants

--- 
- name: SVNRev
  desc: |+
    
    SVN Revision
    
  value: "%q$Rev: 437 $"
- name: SVNId
  desc: |+
    
    SVN Id
    
  value: "%q$Id: response.rb 437 2008-03-28 00:49:20Z deveiant $"
- name: DelegatedMethods
  desc: |+
    
    The Array of method names to delegate to the request object
    
  value: "%w{         &lt;&lt; auth_name auth_type bytes_sent cache_resp cache_resp=         cancel connection content_encoding= content_languages         content_languages= content_type= custom_response         escape_html internal_redirect output_buffer print         printf putc puts replace send_fd setup_cgi_env status         status= status_line status_line= user user=         write     }"

[Validate]

Generated with the Darkfish Rdoc Generator.