PHP 트레잇 Webiny\Component\Http\HttpTrait

파일 보기 프로젝트 열기: Webiny/Framework

보호된 메소드들

메소드 설명
httpCookie ( ) : Cookie Get Cookie instance.
httpRedirect ( string | UrlObject $url, string | integer | array $headers = [], integer $redirectCode = 301 ) Redirect the request to the given url.
httpRequest ( ) : Request Get Request component instance.
httpResponse ( string $content = '', integer $statusCode = 200, array $headers = [] ) : Response Creates and returns a new Response instance.
httpSession ( ) : Session Get Session instance.

메소드 상세

httpCookie() 보호된 정적인 메소드

Get Cookie instance.
protected static httpCookie ( ) : Cookie
리턴 Cookie

httpRedirect() 보호된 정적인 메소드

Redirect the request to the given url.
protected static httpRedirect ( string | UrlObject $url, string | integer | array $headers = [], integer $redirectCode = 301 )
$url string | Webiny\Component\StdLib\StdObject\UrlObject\UrlObject
$headers string | integer | array Headers that you wish to send with your request.
$redirectCode integer

httpRequest() 보호된 정적인 메소드

Get Request component instance.
protected static httpRequest ( ) : Request
리턴 Request

httpResponse() 보호된 정적인 메소드

Creates and returns a new Response instance.
protected static httpResponse ( string $content = '', integer $statusCode = 200, array $headers = [] ) : Response
$content string Content that will be attached to the response.
$statusCode integer HTTP status code that will be sent back to the user.
$headers array Additional headers that should be attached to the response.
리턴 Response

httpSession() 보호된 정적인 메소드

Get Session instance.
protected static httpSession ( ) : Session
리턴 Session