Пример #1
0
 /**
  * Send Http Request Message
  *
  * @param HttpRequest $request
  * @param null $options
  *
  * @return ResponsePlatform
  */
 function request(HttpRequest $request, $options = null)
 {
     $uri = $request->getUri();
     return $this->__makeRequestCall($request->getMethod(), $uri, $options, $request->getBody(), $request->getHeaders());
 }
Пример #2
0
 protected function __getRequestObject()
 {
     $request = new HttpRequest();
     if ($reqOptions = $this->browser->optsData()->getRequest()) {
         ## build with browser request options if has
         $request->from($reqOptions);
     }
     return $request;
 }