PHP 클래스 Ergo\Http\Request

또한 보기: http://tools.ietf.org/html/rfc2616#section-5
파일 보기 프로젝트 열기: 99designs/ergo 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $method, Url $url, $headers = [], $body = null )
copy ( $headers = false, $body = false, $url = false, $method = false ) : object Creates a new Request object with the parameters specified, or uses the current object's parameters
export ( ) : array
getBody ( ) : string
getHeaders ( ) : HeaderCollection
getQueryString ( ) : QueryString
getRequestMethod ( ) : string
getUrl ( ) : Url

메소드 상세

__construct() 공개 메소드

public __construct ( string $method, Url $url, $headers = [], $body = null )
$method string
$url Url

copy() 공개 메소드

Creates a new Request object with the parameters specified, or uses the current object's parameters
public copy ( $headers = false, $body = false, $url = false, $method = false ) : object
리턴 object

export() 공개 메소드

public export ( ) : array
리턴 array

getBody() 공개 메소드

public getBody ( ) : string
리턴 string

getHeaders() 공개 메소드

public getHeaders ( ) : HeaderCollection
리턴 HeaderCollection

getQueryString() 공개 메소드

public getQueryString ( ) : QueryString
리턴 QueryString

getRequestMethod() 공개 메소드

public getRequestMethod ( ) : string
리턴 string

getUrl() 공개 메소드

public getUrl ( ) : Url
리턴 Url