PHP 클래스 Icicle\Http\Message\BasicRequest

상속: extends AbstractMessage, implements Icicle\Http\Message\Request
파일 보기 프로젝트 열기: icicleio/http

공개 메소드들

메소드 설명
__construct ( string $method, string | Icicle\Http\Message\Uri $uri = '', array $headers = [], Icicle\Stream\ReadableStream $stream = null, string | Icicle\Http\Message\Uri $target = null, string $protocol = '1.1' )
getCookie ( string $name )
getCookies ( ) : array
getMethod ( ) : string
getRequestTarget ( ) : Icicle\Http\Message\Uri
getUri ( ) : Icicle\Http\Message\Uri
hasCookie ( string $name ) : boolean
withAddedHeader ( string $name, $value ) : Icicle\Http\Message\Message
withCookie ( string $name, $value ) : Icicle\Http\Message\Request
withHeader ( string $name, $value ) : Icicle\Http\Message\Message
withMethod ( string $method ) : Icicle\Http\Message\Request
withRequestTarget ( string $target = null ) : Icicle\Http\Message\Request
withUri ( $uri ) : Icicle\Http\Message\Request
withoutCookie ( string $name ) : Icicle\Http\Message\Request
withoutHeader ( string $name ) : Icicle\Http\Message\Message

보호된 메소드들

메소드 설명
filterMethod ( string $method ) : string
filterTarget ( string $target = null ) : Icicle\Http\Message\Uri

비공개 메소드들

메소드 설명
setCookiesFromHeaders ( ) Sets cookies based on headers.
setHeadersFromCookies ( ) Sets headers based on cookie values.
setHostFromUri ( ) Sets the host based on the current URI.

메소드 상세

__construct() 공개 메소드

public __construct ( string $method, string | Icicle\Http\Message\Uri $uri = '', array $headers = [], Icicle\Stream\ReadableStream $stream = null, string | Icicle\Http\Message\Uri $target = null, string $protocol = '1.1' )
$method string
$uri string | Icicle\Http\Message\Uri
$headers array
$stream Icicle\Stream\ReadableStream
$target string | Icicle\Http\Message\Uri
$protocol string

filterMethod() 보호된 메소드

protected filterMethod ( string $method ) : string
$method string
리턴 string

filterTarget() 보호된 메소드

protected filterTarget ( string $target = null ) : Icicle\Http\Message\Uri
$target string
리턴 Icicle\Http\Message\Uri

getCookie() 공개 메소드

public getCookie ( string $name )
$name string

getCookies() 공개 메소드

public getCookies ( ) : array
리턴 array

getMethod() 공개 메소드

public getMethod ( ) : string
리턴 string

getRequestTarget() 공개 메소드

public getRequestTarget ( ) : Icicle\Http\Message\Uri
리턴 Icicle\Http\Message\Uri

getUri() 공개 메소드

public getUri ( ) : Icicle\Http\Message\Uri
리턴 Icicle\Http\Message\Uri

hasCookie() 공개 메소드

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

withAddedHeader() 공개 메소드

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

withCookie() 공개 메소드

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

withHeader() 공개 메소드

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

withMethod() 공개 메소드

public withMethod ( string $method ) : Icicle\Http\Message\Request
$method string
리턴 Icicle\Http\Message\Request

withRequestTarget() 공개 메소드

public withRequestTarget ( string $target = null ) : Icicle\Http\Message\Request
$target string
리턴 Icicle\Http\Message\Request

withUri() 공개 메소드

public withUri ( $uri ) : Icicle\Http\Message\Request
리턴 Icicle\Http\Message\Request

withoutCookie() 공개 메소드

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

withoutHeader() 공개 메소드

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