Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
filterMethod ( string $method ) : string | ||
filterTarget ( string $target = null ) : Icicle\Http\Message\Uri |
Method | Description | |
---|---|---|
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 filterMethod ( string $method ) : string | ||
$method | string | |
return | string |
protected filterTarget ( string $target = null ) : Icicle\Http\Message\Uri | ||
$target | string | |
return | Icicle\Http\Message\Uri |
public getRequestTarget ( ) : Icicle\Http\Message\Uri | ||
return | Icicle\Http\Message\Uri |
public withAddedHeader ( string $name, $value ) : Icicle\Http\Message\Message | ||
$name | string | |
return | Icicle\Http\Message\Message |
public withCookie ( string $name, $value ) : Icicle\Http\Message\Request | ||
$name | string | |
return | Icicle\Http\Message\Request |
public withHeader ( string $name, $value ) : Icicle\Http\Message\Message | ||
$name | string | |
return | Icicle\Http\Message\Message |
public withMethod ( string $method ) : Icicle\Http\Message\Request | ||
$method | string | |
return | Icicle\Http\Message\Request |
public withRequestTarget ( string $target = null ) : Icicle\Http\Message\Request | ||
$target | string | |
return | Icicle\Http\Message\Request |
public withUri ( $uri ) : Icicle\Http\Message\Request | ||
return | Icicle\Http\Message\Request |
public withoutCookie ( string $name ) : Icicle\Http\Message\Request | ||
$name | string | |
return | Icicle\Http\Message\Request |
public withoutHeader ( string $name ) : Icicle\Http\Message\Message | ||
$name | string | |
return | Icicle\Http\Message\Message |