<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\HTTP; /** * A factory for an HTTP response. */ class ResponseFactory { /** * Creates a new \Zend_Http_Response object from a string. * * @param string $response * @return \Zend_Http_Response */ public function create($response) { return \Zend_Http_Response::fromString($response); } }