ServerRequest
- Full name:
\Qubus\Http\Swoole\ServerRequest
- Parent class:
\Qubus\Http\Swoole\Request
- This class implements:
\Psr\Http\Message\ServerRequestInterface
Properties
attributes
cookies
files
parsedBody
parsedBodyIsSet
query
uploadedFileFactory
Methods
__construct
public __construct(\Swoole\Http\Request $swooleRequest, \Psr\Http\Message\UriFactoryInterface $uriFactory, \Psr\Http\Message\StreamFactoryInterface $streamFactory, \Psr\Http\Message\UploadedFileFactoryInterface $uploadedFileFactory): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$swooleRequest | \Swoole\Http\Request | |
$uriFactory | \Psr\Http\Message\UriFactoryInterface | |
$streamFactory | \Psr\Http\Message\StreamFactoryInterface | |
$uploadedFileFactory | \Psr\Http\Message\UploadedFileFactoryInterface |
getServerParams
getCookieParams
withCookieParams
Parameters:
Parameter | Type | Description |
---|---|---|
$cookies | array |
getQueryParams
withQueryParams
Parameters:
Parameter | Type | Description |
---|---|---|
$query | array |
getUploadedFiles
withUploadedFiles
Parameters:
Parameter | Type | Description |
---|---|---|
$uploadedFiles | array |
getParsedBody
withParsedBody
Parameters:
Parameter | Type | Description |
---|---|---|
$data | mixed |
getAttributes
getAttribute
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$default | mixed |
withAttribute
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | mixed |
withoutAttribute
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
Inherited methods
__construct
public __construct(\Swoole\Http\Request $swooleRequest, \Psr\Http\Message\UriFactoryInterface $uriFactory, \Psr\Http\Message\StreamFactoryInterface $streamFactory): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$swooleRequest | \Swoole\Http\Request | |
$uriFactory | \Psr\Http\Message\UriFactoryInterface | |
$streamFactory | \Psr\Http\Message\StreamFactoryInterface |
getRequestTarget
withRequestTarget
Parameters:
Parameter | Type | Description |
---|---|---|
$requestTarget | string |
getMethod
withMethod
Parameters:
Parameter | Type | Description |
---|---|---|
$method | string |
getUri
withUri
public withUri(\Psr\Http\Message\UriInterface $uri, bool $preserveHost = false): \Psr\Http\Message\RequestInterface
Parameters:
Parameter | Type | Description |
---|---|---|
$uri | \Psr\Http\Message\UriInterface | |
$preserveHost | bool |
getProtocolVersion
withProtocolVersion
Parameters:
Parameter | Type | Description |
---|---|---|
$version | string |
getHeaders
hasHeader
Parameters:
Parameter | Type | Description |
---|---|---|
$name | mixed |
getHeader
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
getHeaderLine
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
withHeader
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | mixed |
withAddedHeader
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | mixed |
withoutHeader
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
getBody
withBody
Parameters:
Parameter | Type | Description |
---|---|---|
$body | \Psr\Http\Message\StreamInterface |
Automatically generated on 2025-10-13