# give/4.16.9/src/Framework/Http/Response/functions.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 27 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Framework/Http/Response/functions.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Framework/Http/Response/functions.php
- Modified: 2022-01-20T06:45:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/Framework/Http/Response/functions.php#L10-L20`.

```php
<?php

namespace Give\Framework\Http\Response;


/**
 * Return a new response from the application.
 *
 * @since 2.18.0
 *
 * @param  string  $content
 * @param  int  $status
 * @param  array  $headers
 * @return Response|ResponseFactory
 */
function response($content = '', $status = 200, array $headers = [])
{
    /** @var ResponseFactory $factory */
    $factory = give(ResponseFactory::class);

    if (func_num_args() === 0) {
        return $factory;
    }

    return $factory->make($content, $status, $headers);
}

```
