Dingo\Api\Http\Response\Factory::accepted PHP Method

accepted() public method

Respond with an accepted response and associate a location and/or content if provided.
public accepted ( null | string $location = null, mixed $content = null ) : Response
$location null | string
$content mixed
return Dingo\Api\Http\Response
    public function accepted($location = null, $content = null)
    {
        $response = new Response($content);
        $response->setStatusCode(202);
        if (!is_null($location)) {
            $response->header('Location', $location);
        }
        return $response;
    }