PHP Interface Bitpay\Client\RequestInterface

Afficher le fichier Open project: bitpay/php-client Interface Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

getBody() public méthode

Returns the request body
public getBody ( ) : string
Résultat string

getHeaders() public méthode

Returns a $key => $value array of http headers
public getHeaders ( ) : array
Résultat array

getHost() public méthode

Returns the host to send the request to. The host would be something such as test.bitpay.com or bitpay.com
public getHost ( ) : string
Résultat string

getMethod() public méthode

Returns the method for this request
public getMethod ( ) : string
Résultat string

getPath() public méthode

example of path is api/invoice as this is appended to $host
public getPath ( ) : string
Résultat string

getPort() public méthode

Returns port to send request on
public getPort ( ) : integer
Résultat integer

getSchema() public méthode

Should always return https
public getSchema ( ) : string
Résultat string

getUri() public méthode

Returns $schema://$host:$port/$path
public getUri ( ) : string
Résultat string

isMethod() public méthode

Checks the request to see if the method matches a known value
public isMethod ( string $method ) : boolean
$method string
Résultat boolean