/**
  * Creates a new response
  *
  * @param   peer.http.HttpResponse response
  * @param   webservices.rest.ResponseReader reader
  * @param   var type (Deprecated)
  */
 public function __construct(HttpResponse $response, ResponseReader $reader = NULL, $type = NULL)
 {
     $this->response = $response;
     $this->reader = $reader;
     $this->type = $type;
     $this->input = $response->getInputStream();
 }
예제 #2
0
 /**
  * Creates a new response
  *
  * @param   peer.http.HttpResponse response
  * @param   webservices.rest.RestDeserializer deserializer
  * @param   lang.Type type
  */
 public function __construct(HttpResponse $response, RestDeserializer $deserializer = NULL, Type $type = NULL)
 {
     $this->response = $response;
     $this->deserializer = $deserializer;
     $this->type = $type;
     $this->input = $response->getInputStream();
 }