PHP Класс Bitpay\Client\Request

Наследование: implements Bitpay\Client\RequestInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

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

Метод Описание
__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

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

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

public __construct ( )

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

Converts this request into a standard HTTP/1.1 message to be sent over the wire
public __toString ( ) : string
Результат string

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

public getBody ( )

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

public getHeaderFields ( )

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

public getHeaders ( )

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

public getHeadersAsString ( ) : string
Результат string

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

public getHost ( )

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

public getMethod ( )

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

public getPath ( )

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

public getPort ( )

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

public getSchema ( )

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

public getUri ( )

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

public getUriWithPort ( )

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

public isMethod ( $method )

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

The the body of the request
public setBody ( string $body )
$body string

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

Set a http header for the request
public setHeader ( string $header, string $value )
$header string
$value string

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

Sets the host for the request
public setHost ( string $host )
$host string

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

Set the method of the request, for known methods see the RequestInterface
public setMethod ( string $method )
$method string

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

public setPath ( $path )

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

This is called in the Adapter
public setPort ( $port )

Описание свойств

$body защищенное свойство

protected string $body
Результат string

$headers защищенное свойство

protected array $headers
Результат array

$host защищенное свойство

This should be something such as test.bitpay.com or just bitpay.com
protected string $host
Результат string

$method защищенное свойство

See the RequestInterface for all the valid methods
protected string $method
Результат string

$path защищенное свойство

The path is added to the end of the host
protected string $path
Результат string

$port защищенное свойство

Default is 443 but should be changed by whatever is passed in through the Adapter.
protected int $port
Результат integer

$uri защищенное свойство

$schema://$hostname/$path
protected string $uri
Результат string