Вход Регистрация
Файл: system/vendor/illuminate/contracts/Routing/ResponseFactory.php
Строк: 227
<?php

namespace IlluminateContractsRouting;

interface 
ResponseFactory
{
    
/**
     * Create a new response instance.
     *
     * @param  string  $content
     * @param  int  $status
     * @param  array  $headers
     * @return IlluminateHttpResponse
     */
    
public function make($content ''$status 200, array $headers = []);

    
/**
     * Create a new "no content" response.
     *
     * @param  int  $status
     * @param  array  $headers
     * @return IlluminateHttpResponse
     */
    
public function noContent($status 204, array $headers = []);

    
/**
     * Create a new response for a given view.
     *
     * @param  string|array  $view
     * @param  array  $data
     * @param  int  $status
     * @param  array  $headers
     * @return IlluminateHttpResponse
     */
    
public function view($view$data = [], $status 200, array $headers = []);

    
/**
     * Create a new JSON response instance.
     *
     * @param  string|array|object  $data
     * @param  int  $status
     * @param  array  $headers
     * @param  int  $options
     * @return IlluminateHttpJsonResponse
     */
    
public function json($data = [], $status 200, array $headers = [], $options 0);

    
/**
     * Create a new JSONP response instance.
     *
     * @param  string  $callback
     * @param  string|array|object  $data
     * @param  int  $status
     * @param  array  $headers
     * @param  int  $options
     * @return IlluminateHttpJsonResponse
     */
    
public function jsonp($callback$data = [], $status 200, array $headers = [], $options 0);

    
/**
     * Create a new streamed response instance.
     *
     * @param  Closure  $callback
     * @param  int  $status
     * @param  array  $headers
     * @return SymfonyComponentHttpFoundationStreamedResponse
     */
    
public function stream($callback$status 200, array $headers = []);

    
/**
     * Create a new streamed response instance as a file download.
     *
     * @param  Closure  $callback
     * @param  string|null  $name
     * @param  array  $headers
     * @param  string|null  $disposition
     * @return SymfonyComponentHttpFoundationStreamedResponse
     */
    
public function streamDownload($callback$name null, array $headers = [], $disposition 'attachment');

    
/**
     * Create a new file download response.
     *
     * @param  SplFileInfo|string  $file
     * @param  string|null  $name
     * @param  array  $headers
     * @param  string|null  $disposition
     * @return SymfonyComponentHttpFoundationBinaryFileResponse
     */
    
public function download($file$name null, array $headers = [], $disposition 'attachment');

    
/**
     * Return the raw contents of a binary file.
     *
     * @param  SplFileInfo|string  $file
     * @param  array  $headers
     * @return SymfonyComponentHttpFoundationBinaryFileResponse
     */
    
public function file($file, array $headers = []);

    
/**
     * Create a new redirect response to the given path.
     *
     * @param  string  $path
     * @param  int  $status
     * @param  array  $headers
     * @param  bool|null  $secure
     * @return IlluminateHttpRedirectResponse
     */
    
public function redirectTo($path$status 302$headers = [], $secure null);

    
/**
     * Create a new redirect response to a named route.
     *
     * @param  string  $route
     * @param  mixed  $parameters
     * @param  int  $status
     * @param  array  $headers
     * @return IlluminateHttpRedirectResponse
     */
    
public function redirectToRoute($route$parameters = [], $status 302$headers = []);

    
/**
     * Create a new redirect response to a controller action.
     *
     * @param  string  $action
     * @param  mixed  $parameters
     * @param  int  $status
     * @param  array  $headers
     * @return IlluminateHttpRedirectResponse
     */
    
public function redirectToAction($action$parameters = [], $status 302$headers = []);

    
/**
     * Create a new redirect response, while putting the current URL in the session.
     *
     * @param  string  $path
     * @param  int  $status
     * @param  array  $headers
     * @param  bool|null  $secure
     * @return IlluminateHttpRedirectResponse
     */
    
public function redirectGuest($path$status 302$headers = [], $secure null);

    
/**
     * Create a new redirect response to the previously intended location.
     *
     * @param  string  $default
     * @param  int  $status
     * @param  array  $headers
     * @param  bool|null  $secure
     * @return IlluminateHttpRedirectResponse
     */
    
public function redirectToIntended($default '/'$status 302$headers = [], $secure null);
}
Онлайн: 0
Реклама