Class Response
Response
Die Response-Klasse kapselt das Ergebnis eines Requests und stellt Methoden für die Bearbeitung der Header und des Body bereit.
Die Response-Klasse kann eine Zeichenkette in die entsprechenden Objekte überführen. Dies funktioniert auch für multipart-Daten
// @var $response \Alvine\Net\Http\Response $response = Response::getInstanceFromData($data); // Body holen $body = $response->getBody(); // Inhalt holen $content = $body->getContent(); // Bei Multiparts können die Teile geholt werden if($content instance of \Alvine\Types\Mime\Multipart) { $parts = $content->getParts(); foreach($parts AS $part) { echo (string) $part; } }
- Alvine\Core\Alvine implements Serializable uses Alvine\Core\SerializableImplementation
- Alvine\Net\Http\HTTPMessage implements Alvine\Core\InstantiableFromData
- Alvine\Net\Http\Response
Direct known subclasses
Alvine\Net\Http\Environment\Response
Namespace: Alvine\Net\Http
Package: Alvine\Net\Http
Category: Framework
License: Licence
Author: schukai GmbH info@schukai.de
Version: Release: $Revision: 173 $
Since: 20110904
Link: Alvine
Link: http://de.wikipedia.org/wiki/Liste_der_HTTP-Headerfelder
Located at net/http/Response.class.php
Package: Alvine\Net\Http
Category: Framework
License: Licence
Author: schukai GmbH info@schukai.de
Version: Release: $Revision: 173 $
Since: 20110904
Link: Alvine
Link: http://de.wikipedia.org/wiki/Liste_der_HTTP-Headerfelder
Located at net/http/Response.class.php
public
|
#
__construct(
Der Konstruktor erstellt ein neue Response Instanz |
public static
|
|
protected static
array[<ResponseHeader>,<Body>]
|
|
protected static
|
|
protected static
|
|
public static
string
|
|
public
|
addHeader(),
getBody(),
getHeader()
|
__call(),
__clone(),
__get(),
__set(),
__toString(),
equals(),
getClass(),
getClone(),
getClosure(),
getHashCode(),
getID(),
getShortID(),
isCallable(),
isInstanceOf(),
propertyExists()
|
serialize(),
unserialize()
|
checkAndAdjustSerialisation(),
serialize(),
unserialize()
|
HTTP_1_0,
HTTP_1_1
|
APIVERSION,
IDENTIFICATION,
SERIALVERSION,
VERSION
|
$body,
$header
|
$hash,
$properties
|