PHP 인터페이스 Icicle\Http\Message\Request

상속: extends Icicle\Http\Message\Message
파일 보기 프로젝트 열기: icicleio/http 0 사용 예제들

공개 메소드들

메소드 설명
getCookie ( string $name ) : Icicle\Http\Message\Cookie\Cookie | null
getCookies ( ) : array
getHeader ( string $name ) : string Same as Message::getHeader(), except if the Host header is request and previously unset, the value will be determined from the URI.
getHeaderAsArray ( string $name ) : array Same as Message::getHeader(), except if the Host header is request and previously unset, the value will be determined from the URI.
getHeaders ( ) : array Same as Message::getHeaders(), except the Host header will always be set based on the URI.
getMethod ( ) : string Returns the request method.
getRequestTarget ( ) : Icicle\Http\Message\Uri Returns the target of the request. Unless explicitly set, this will usually be the path and query portion of the URI.
getUri ( ) : Icicle\Http\Message\Uri Returns the request URI.
hasCookie ( string $name ) : boolean
withCookie ( string $name, string $value ) : Icicle\Http\Message\Request
withMethod ( string $method ) : Icicle\Http\Message\Request Returns a new instance with the given request method.
withRequestTarget ( string $target ) : Icicle\Http\Message\Request Returns a new instance with the given request target.
withUri ( Icicle\Http\Message\Uri $uri ) : Icicle\Http\Message\Request Returns a new instance with the given URI.
withoutCookie ( string $name ) : Icicle\Http\Message\Request

메소드 상세

getCookie() 공개 메소드

public getCookie ( string $name ) : Icicle\Http\Message\Cookie\Cookie | null
$name string
리턴 Icicle\Http\Message\Cookie\Cookie | null

getCookies() 공개 메소드

public getCookies ( ) : array
리턴 array

getHeader() 공개 메소드

Same as Message::getHeader(), except if the Host header is request and previously unset, the value will be determined from the URI.
public getHeader ( string $name ) : string
$name string
리턴 string

getHeaderAsArray() 공개 메소드

Same as Message::getHeader(), except if the Host header is request and previously unset, the value will be determined from the URI.
public getHeaderAsArray ( string $name ) : array
$name string
리턴 array

getHeaders() 공개 메소드

Same as Message::getHeaders(), except the Host header will always be set based on the URI.
public getHeaders ( ) : array
리턴 array

getMethod() 공개 메소드

Returns the request method.
public getMethod ( ) : string
리턴 string

getRequestTarget() 공개 메소드

Returns the target of the request. Unless explicitly set, this will usually be the path and query portion of the URI.
public getRequestTarget ( ) : Icicle\Http\Message\Uri
리턴 Icicle\Http\Message\Uri

getUri() 공개 메소드

Returns the request URI.
public getUri ( ) : Icicle\Http\Message\Uri
리턴 Icicle\Http\Message\Uri

hasCookie() 공개 메소드

public hasCookie ( string $name ) : boolean
$name string
리턴 boolean

withCookie() 공개 메소드

public withCookie ( string $name, string $value ) : Icicle\Http\Message\Request
$name string
$value string
리턴 Icicle\Http\Message\Request

withMethod() 공개 메소드

Returns a new instance with the given request method.
public withMethod ( string $method ) : Icicle\Http\Message\Request
$method string
리턴 Icicle\Http\Message\Request

withRequestTarget() 공개 메소드

Returns a new instance with the given request target.
public withRequestTarget ( string $target ) : Icicle\Http\Message\Request
$target string
리턴 Icicle\Http\Message\Request

withUri() 공개 메소드

Returns a new instance with the given URI.
public withUri ( Icicle\Http\Message\Uri $uri ) : Icicle\Http\Message\Request
$uri Icicle\Http\Message\Uri
리턴 Icicle\Http\Message\Request

withoutCookie() 공개 메소드

public withoutCookie ( string $name ) : Icicle\Http\Message\Request
$name string
리턴 Icicle\Http\Message\Request