Request
in package
Represents an HTTP request.
Tags
Table of Contents
Properties
- $content : string
- Request content.
- $deferred : Deferred
- Deferred promise.
- $headers : array<string|int, mixed>
- Request headers.
- $method : string
- Request method.
- $url : Endpoint
- Request URL.
Methods
- __construct() : mixed
- Request constructor.
- __toString() : string
- Converts the request to a user-readable string.
- getBucketID() : string
- Returns the bucket ID for the request.
- getContent() : string
- Gets the content.
- getDeferred() : Deferred
- Returns the deferred promise.
- getHeaders() : string
- Gets the headers.
- getMethod() : string
- Gets the method.
- getUrl() : string
- Gets the url.
Properties
$content
Request content.
protected
string
$content
$deferred
Deferred promise.
protected
Deferred
$deferred
$headers
Request headers.
protected
array<string|int, mixed>
$headers
$method
Request method.
protected
string
$method
$url
Request URL.
protected
Endpoint
$url
Methods
__construct()
Request constructor.
public
__construct(Deferred $deferred, string $method, Endpoint $url, string $content[, array<string|int, mixed> $headers = [] ]) : mixed
Parameters
- $deferred : Deferred
- $method : string
- $url : Endpoint
- $content : string
- $headers : array<string|int, mixed> = []
__toString()
Converts the request to a user-readable string.
public
__toString() : string
Return values
stringgetBucketID()
Returns the bucket ID for the request.
public
getBucketID() : string
Return values
stringgetContent()
Gets the content.
public
getContent() : string
Return values
stringgetDeferred()
Returns the deferred promise.
public
getDeferred() : Deferred
Return values
DeferredgetHeaders()
Gets the headers.
public
getHeaders() : string
Return values
stringgetMethod()
Gets the method.
public
getMethod() : string
Return values
stringgetUrl()
Gets the url.
public
getUrl() : string