/** * 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()); }
protected function __getRequestObject() { $request = new HttpRequest(); if ($reqOptions = $this->browser->optsData()->getRequest()) { ## build with browser request options if has $request->from($reqOptions); } return $request; }