Property | Type | Description | |
---|---|---|---|
$body | string | ||
$headers | array | ||
$host | string | This should be something such as test.bitpay.com or just bitpay.com | |
$method | string | See the RequestInterface for all the valid methods | |
$path | string | The path is added to the end of the host | |
$port | integer | Default is 443 but should be changed by whatever is passed in through the Adapter. | |
$uri | string | $schema://$hostname/$path |
Method | Description | |
---|---|---|
__construct ( ) | ||
__toString ( ) : string | Converts this request into a standard HTTP/1.1 message to be sent over the wire | |
getBody ( ) | ||
getHeaderFields ( ) | ||
getHeaders ( ) | ||
getHeadersAsString ( ) : string | ||
getHost ( ) | ||
getMethod ( ) | ||
getPath ( ) | ||
getPort ( ) | ||
getSchema ( ) | ||
getUri ( ) | ||
getUriWithPort ( ) | ||
isMethod ( $method ) | ||
setBody ( string $body ) | The the body of the request | |
setHeader ( string $header, string $value ) | Set a http header for the request | |
setHost ( string $host ) | Sets the host for the request | |
setMethod ( string $method ) | Set the method of the request, for known methods see the RequestInterface | |
setPath ( $path ) | ||
setPort ( $port ) | This is called in the Adapter |
public __toString ( ) : string | ||
return | string |
protected string $host | ||
return | string |
protected string $method | ||
return | string |
protected string $path | ||
return | string |
protected int $port | ||
return | integer |