Class SimpleHttpResponse

Description

Basic HTTP response.

Located in /http.php (line 481)

SimpleStickyError
   |
   --SimpleHttpResponse
Variable Summary
 mixed $_content
 mixed $_encoding
 mixed $_headers
 mixed $_sent
 mixed $_url
Method Summary
 SimpleHttpResponse SimpleHttpResponse ( &$socket, SimpleUrl $url, mixed $encoding, SimpleSocket $socket)
 string getContent ()
 SimpleHeaders getHeaders ()
 string getMethod ()
 array getNewCookies ()
 mixed getRequestData ()
 string getSent ()
Variables
mixed $_content (line 485)
mixed $_encoding (line 483)
mixed $_headers (line 486)
mixed $_sent (line 484)
mixed $_url (line 482)

Inherited Variables

Inherited from SimpleStickyError

SimpleStickyError::$_error
Methods
Constructor SimpleHttpResponse (line 497)

Constructor. Reads and parses the incoming content and headers.

  • access: public
SimpleHttpResponse SimpleHttpResponse ( &$socket, SimpleUrl $url, mixed $encoding, SimpleSocket $socket)
  • SimpleSocket $socket: Network connection to fetch response text from.
  • SimpleUrl $url: Resource name.
  • mixed $encoding: Record of content sent.
  • &$socket
getContent (line 571)

Accessor for the content after the last header line.

  • return: All content.
  • access: public
string getContent ()
getHeaders (line 581)

Accessor for header block. The response is the combination of this and the content.

  • return: Wrapped header block.
  • access: public
SimpleHeaders getHeaders ()
getMethod (line 534)

Original request method.

  • return: GET, POST or HEAD.
  • access: public
string getMethod ()
getNewCookies (line 590)

Accessor for any new cookies.

  • return: List of new cookies.
  • access: public
array getNewCookies ()
getRequestData (line 552)

Original request data.

  • return: Sent content.
  • access: public
mixed getRequestData ()
getSent (line 561)

Raw request that was sent down the wire.

  • return: Bytes actually sent.
  • access: public
string getSent ()
getUrl (line 543)

Resource name.

  • return: Current url.
  • access: public
SimpleUrl getUrl ()

Inherited Methods

Inherited From SimpleStickyError

 SimpleStickyError::SimpleStickyError()
 SimpleStickyError::getError()
 SimpleStickyError::isError()
 SimpleStickyError::_clearError()
 SimpleStickyError::_setError()

Documentation generated on Sun, 04 May 2008 09:21:41 -0500 by phpDocumentor 1.3.0