Class: Sabre_HTTP_Response

Source Location: /includes/classes/SabreDAV/lib/Sabre/HTTP/Response.php

Class Overview [line 12]


Sabre_HTTP_Response

Author(s):

  • Evert Pot (http://www.rooftopsolutions.nl/)

Version:

Copyright:

  • Copyright (C) 2007-2010 Rooftop Solutions. All rights reserved.

Variables

Constants

Methods


Child classes:

Sabre_HTTP_ResponseMock
Sabre_HTTP_Response

Inherited Variables

Inherited Constants

Inherited Methods



Class Details

Sabre_HTTP_Response

Tags:

[ Top ]


Class Variables


Class Methods

getStatusMessage

string getStatusMessage( int $code)

[line 20]

Returns a full HTTP status message for an HTTP status code

Tags:

  • access - public

Parameters:

  • int $code -

[ Top ]

sendBody

void sendBody( mixed $body)

[line 129]

Sends the entire response body

This method can accept either an open filestream, or a string. Note that this method will first rewind the stream before output.

Tags:

  • access - public

Overridden in child classes as:

Sabre_HTTP_ResponseMock::sendBody()

Parameters:

  • mixed $body -

[ Top ]

sendStatus

void sendStatus( int $code)

[line 81]

Sends an HTTP status header to the client

Tags:

  • access - public

Overridden in child classes as:

Sabre_HTTP_ResponseMock::sendStatus()

Parameters:

  • int $code - HTTP status code

[ Top ]

setHeader

void setHeader( string $name, string $value, [ $replace = true])

[line 96]

Sets an HTTP header for the response

Tags:

  • access - public

Overridden in child classes as:

Sabre_HTTP_ResponseMock::setHeader()

Parameters:

  • string $name -
  • string $value -
  • $replace -

[ Top ]

setHeaders

void setHeaders( $headers)

[line 113]

Sets a bunch of HTTP Headers

headersnames are specified as keys, value in the array value

Tags:

  • access - public

Parameters:

  • array $headers -

[ Top ]


Class Constants


Documentation generated on Mon, 31 May 2010 12:53:57 -0400 by phpDocumentor 1.4.3