platform/api/laravel/Contracts/Routing/ResponseFactory.yaml

315 lines
5.9 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: ResponseFactory
class_comment: null
dependencies: []
properties: []
methods:
- name: make
visibility: public
parameters:
- name: content
default: ''''''
- name: status
default: '200'
- name: headers
default: '[]'
comment: '# * Create a new response instance.
# *
# * @param array|string $content
# * @param int $status
# * @param array $headers
# * @return \Illuminate\Http\Response'
- name: noContent
visibility: public
parameters:
- name: status
default: '204'
- name: headers
default: '[]'
comment: '# * Create a new "no content" response.
# *
# * @param int $status
# * @param array $headers
# * @return \Illuminate\Http\Response'
- name: view
visibility: public
parameters:
- name: view
- name: data
default: '[]'
- name: status
default: '200'
- name: headers
default: '[]'
comment: '# * Create a new response for a given view.
# *
# * @param string|array $view
# * @param array $data
# * @param int $status
# * @param array $headers
# * @return \Illuminate\Http\Response'
- name: json
visibility: public
parameters:
- name: data
default: '[]'
- name: status
default: '200'
- name: headers
default: '[]'
- name: options
default: '0'
comment: '# * Create a new JSON response instance.
# *
# * @param mixed $data
# * @param int $status
# * @param array $headers
# * @param int $options
# * @return \Illuminate\Http\JsonResponse'
- name: jsonp
visibility: public
parameters:
- name: callback
- name: data
default: '[]'
- name: status
default: '200'
- name: headers
default: '[]'
- name: options
default: '0'
comment: '# * Create a new JSONP response instance.
# *
# * @param string $callback
# * @param mixed $data
# * @param int $status
# * @param array $headers
# * @param int $options
# * @return \Illuminate\Http\JsonResponse'
- name: stream
visibility: public
parameters:
- name: callback
- name: status
default: '200'
- name: headers
default: '[]'
comment: '# * Create a new streamed response instance.
# *
# * @param callable $callback
# * @param int $status
# * @param array $headers
# * @return \Symfony\Component\HttpFoundation\StreamedResponse'
- name: streamDownload
visibility: public
parameters:
- name: callback
- name: name
default: 'null'
- name: headers
default: '[]'
- name: disposition
default: '''attachment'''
comment: '# * Create a new streamed response instance as a file download.
# *
# * @param callable $callback
# * @param string|null $name
# * @param array $headers
# * @param string|null $disposition
# * @return \Symfony\Component\HttpFoundation\StreamedResponse'
- name: download
visibility: public
parameters:
- name: file
- name: name
default: 'null'
- name: headers
default: '[]'
- name: disposition
default: '''attachment'''
comment: '# * Create a new file download response.
# *
# * @param \SplFileInfo|string $file
# * @param string|null $name
# * @param array $headers
# * @param string|null $disposition
# * @return \Symfony\Component\HttpFoundation\BinaryFileResponse'
- name: file
visibility: public
parameters:
- name: file
- name: headers
default: '[]'
comment: '# * Return the raw contents of a binary file.
# *
# * @param \SplFileInfo|string $file
# * @param array $headers
# * @return \Symfony\Component\HttpFoundation\BinaryFileResponse'
- name: redirectTo
visibility: public
parameters:
- name: path
- name: status
default: '302'
- name: headers
default: '[]'
- name: secure
default: 'null'
comment: '# * Create a new redirect response to the given path.
# *
# * @param string $path
# * @param int $status
# * @param array $headers
# * @param bool|null $secure
# * @return \Illuminate\Http\RedirectResponse'
- name: redirectToRoute
visibility: public
parameters:
- name: route
- name: parameters
default: '[]'
- name: status
default: '302'
- name: headers
default: '[]'
comment: '# * Create a new redirect response to a named route.
# *
# * @param string $route
# * @param mixed $parameters
# * @param int $status
# * @param array $headers
# * @return \Illuminate\Http\RedirectResponse'
- name: redirectToAction
visibility: public
parameters:
- name: action
- name: parameters
default: '[]'
- name: status
default: '302'
- name: headers
default: '[]'
comment: '# * Create a new redirect response to a controller action.
# *
# * @param array|string $action
# * @param mixed $parameters
# * @param int $status
# * @param array $headers
# * @return \Illuminate\Http\RedirectResponse'
- name: redirectGuest
visibility: public
parameters:
- name: path
- name: status
default: '302'
- name: headers
default: '[]'
- name: secure
default: 'null'
comment: '# * 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 \Illuminate\Http\RedirectResponse'
- name: redirectToIntended
visibility: public
parameters:
- name: default
default: '''/'''
- name: status
default: '302'
- name: headers
default: '[]'
- name: secure
default: 'null'
comment: '# * Create a new redirect response to the previously intended location.
# *
# * @param string $default
# * @param int $status
# * @param array $headers
# * @param bool|null $secure
# * @return \Illuminate\Http\RedirectResponse'
traits: []
interfaces: []