Laravel\Lumen\Http\ResponseFactory::make PHP Method

make() public method

Return a new response from the application.
public make ( string $content = '', integer $status = 200, array $headers = [] ) : Illuminate\Http\Response
$content string
$status integer
$headers array
return Illuminate\Http\Response
    public function make($content = '', $status = 200, array $headers = [])
    {
        return new Response($content, $status, $headers);
    }

Usage Example

 public function testMakeDefaultResponse()
 {
     $content = 'hello';
     $responseFactory = new ResponseFactory();
     $response = $responseFactory->make($content);
     $this->assertInstanceOf('\\Symfony\\Component\\HttpFoundation\\Response', $response);
     $this->assertEquals($content, $response->getContent());
     $this->assertEquals(Response::HTTP_OK, $response->getStatusCode());
 }