extends |
Message |
---|---|
implements |
RequestInterface |
The Request class represents a single HTTP request.
You can either simply construct the object from scratch, or if you need access to the current HTTP request, use Sapi::getRequest.
Methods | ||
---|---|---|
public
|
__construct(string $method, string $url, array $headers = [], resource|callable|string $body = null)
|
# |
public
|
getMethod(): string
|
# |
public
|
setMethod(string $method)
|
# |
public
|
getUrl(): string
|
# |
public
|
setUrl(string $url)
|
# |
public
|
getQueryParameters(): array
|
# |
public
|
setAbsoluteUrl(string $url)
|
# |
public
|
getAbsoluteUrl(): string
|
# |
public
|
setBaseUrl(string $url)
|
# |
public
|
getBaseUrl(): string
|
# |
public
|
getPath(): string
|
# |
public
|
setPostData(array $postData)
|
# |
public
|
getPostData(): array
|
# |
public
|
getRawServerValue(string $valueName): string|null
|
# |
public
|
setRawServerData(array $data)
|
# |
public
|
__toString(): string
|
# |