PHP 클래스 Bitpay\Client\Request

상속: implements Bitpay\Client\RequestInterface
파일 보기 프로젝트 열기: bitpay/php-client 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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