PHP Интерфейс Bitpay\Client\RequestInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
getBody ( ) : string Returns the request body
getHeaders ( ) : array Returns a $key => $value array of http headers
getHost ( ) : string Returns the host to send the request to. The host would be something such as test.bitpay.com or bitpay.com
getMethod ( ) : string Returns the method for this request
getPath ( ) : string example of path is api/invoice as this is appended to $host
getPort ( ) : integer Returns port to send request on
getSchema ( ) : string Should always return https
getUri ( ) : string Returns $schema://$host:$port/$path
isMethod ( string $method ) : boolean Checks the request to see if the method matches a known value

Описание методов

getBody() публичный Метод

Returns the request body
public getBody ( ) : string
Результат string

getHeaders() публичный Метод

Returns a $key => $value array of http headers
public getHeaders ( ) : array
Результат array

getHost() публичный Метод

Returns the host to send the request to. The host would be something such as test.bitpay.com or bitpay.com
public getHost ( ) : string
Результат string

getMethod() публичный Метод

Returns the method for this request
public getMethod ( ) : string
Результат string

getPath() публичный Метод

example of path is api/invoice as this is appended to $host
public getPath ( ) : string
Результат string

getPort() публичный Метод

Returns port to send request on
public getPort ( ) : integer
Результат integer

getSchema() публичный Метод

Should always return https
public getSchema ( ) : string
Результат string

getUri() публичный Метод

Returns $schema://$host:$port/$path
public getUri ( ) : string
Результат string

isMethod() публичный Метод

Checks the request to see if the method matches a known value
public isMethod ( string $method ) : boolean
$method string
Результат boolean