protected function createResponse($statusCode, $url, $headers, $body, $effectiveUrl = null)
    {
        return new HttpResponse($statusCode, $url, $this->createHeaders($headers), $body, $effectiveUrl);
    }
protected function createResponse($statusCode, $url, $headers, $body, $effectiveUrl = null)
    {
        return new HttpResponse($statusCode, $url, $this->createHeaders($headers), $body, $effectiveUrl);
    }
protected function createResponse ( $ statusCode , $ url , $ headers , $ body , $ effectiveUrl = null ) { return new HttpResponse ( $ statusCode , $ url , $ this -> createHeaders ( $ headers ) , $ body , $ effectiveUrl ) ; }
Creates an Http response.

@param integer|null $statusCode   The response status code.
@param string       $url          The response URL.
@param string|array $headers      The response headers.
@param string       $body         The response body.
@param string|null  $effectiveUrl The response effective URL.

@return \Widop\HttpAdapter\HttpResponse The response.
Creates an Http response .