메소드 | 설명 | |
---|---|---|
__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. |
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 |
protected filterTarget ( string $target = null ) : Icicle\Http\Message\Uri | ||
$target | string | |
리턴 | Icicle\Http\Message\Uri |
public getRequestTarget ( ) : Icicle\Http\Message\Uri | ||
리턴 | Icicle\Http\Message\Uri |
public withAddedHeader ( string $name, $value ) : Icicle\Http\Message\Message | ||
$name | string | |
리턴 | Icicle\Http\Message\Message |
public withCookie ( string $name, $value ) : Icicle\Http\Message\Request | ||
$name | string | |
리턴 | Icicle\Http\Message\Request |
public withHeader ( string $name, $value ) : Icicle\Http\Message\Message | ||
$name | string | |
리턴 | Icicle\Http\Message\Message |
public withMethod ( string $method ) : Icicle\Http\Message\Request | ||
$method | string | |
리턴 | Icicle\Http\Message\Request |
public withRequestTarget ( string $target = null ) : Icicle\Http\Message\Request | ||
$target | string | |
리턴 | Icicle\Http\Message\Request |
public withUri ( $uri ) : Icicle\Http\Message\Request | ||
리턴 | Icicle\Http\Message\Request |
public withoutCookie ( string $name ) : Icicle\Http\Message\Request | ||
$name | string | |
리턴 | Icicle\Http\Message\Request |
public withoutHeader ( string $name ) : Icicle\Http\Message\Message | ||
$name | string | |
리턴 | Icicle\Http\Message\Message |